	.file	"extr_camcontrol.c_atahpa_password.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	atahpa_password, @function
atahpa_password:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 16
	.cfi_def_cfa_offset 24
	mov	r10d, esi
	test	r8d, r8d
	mov	eax, DWORD PTR ATA_SET_MAX_ADDRESS48[rip]
	mov	rsi, rcx
	cmove	eax, DWORD PTR ATA_SET_MAX_ADDRESS[rip]
	mov	ecx, 1000
	test	edx, edx
	cmove	edx, ecx
	push	r8
	.cfi_def_cfa_offset 32
	mov	ecx, DWORD PTR CAM_DIR_OUT[rip]
	mov	r8d, DWORD PTR AP_PROTO_PIO_OUT[rip]
	push	rdx
	.cfi_def_cfa_offset 40
	mov	edx, DWORD PTR ATA_HPA_FEAT_SET_PWD[rip]
	push	4
	.cfi_def_cfa_offset 48
	push	r9
	.cfi_def_cfa_offset 56
	mov	r9d, DWORD PTR AP_FLAG_BYT_BLOK_BLOCKS[rip]
	push	0
	.cfi_def_cfa_offset 64
	or	r9d, DWORD PTR AP_FLAG_TLEN_SECT_CNT[rip]
	push	0
	.cfi_def_cfa_offset 72
	push	rdx
	.cfi_def_cfa_offset 80
	mov	edx, r10d
	push	rax
	.cfi_def_cfa_offset 88
	mov	eax, DWORD PTR MSG_SIMPLE_Q_TAG[rip]
	push	rax
	.cfi_def_cfa_offset 96
	call	ata_do_cmd@PLT
	add	rsp, 88
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	atahpa_password, .-atahpa_password
	.comm	MSG_SIMPLE_Q_TAG,4,4
	.comm	CAM_DIR_OUT,4,4
	.comm	ATA_SET_MAX_ADDRESS48,4,4
	.comm	ATA_SET_MAX_ADDRESS,4,4
	.comm	ATA_HPA_FEAT_SET_PWD,4,4
	.comm	AP_PROTO_PIO_OUT,4,4
	.comm	AP_FLAG_TLEN_SECT_CNT,4,4
	.comm	AP_FLAG_BYT_BLOK_BLOCKS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_camcontrol.c_atahpa_password.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atahpa_password, %function
atahpa_password:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r2
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #48
	ldr	r4, [sp, #72]
	mov	lr, r1
	cmp	r4, #0
	mov	r1, r3
	ldrne	r3, .L7
	ldreq	r3, .L7+4
	cmp	ip, #0
	moveq	ip, #1000
	ldr	r5, .L7+8
	ldr	r8, [r3]
	ldr	r2, [r5]
	mov	r3, #0
	mov	r5, #4
	ldr	r7, .L7+12
	str	ip, [sp, #36]
	ldr	ip, .L7+16
	ldr	r7, [r7]
	str	r4, [sp, #40]
	ldr	ip, [ip]
	ldr	r4, .L7+20
	ldr	r6, [sp, #76]
	orr	ip, r7, ip
	ldr	r7, [r4]
	ldr	r4, .L7+24
	str	r6, [sp, #28]
	ldr	r6, [r4]
	ldr	r4, .L7+28
	str	r2, [sp]
	str	r8, [sp, #12]
	str	ip, [sp, #4]
	str	r7, [sp, #8]
	str	r6, [sp, #16]
	str	r5, [sp, #32]
	str	r3, [sp, #24]
	str	r3, [sp, #20]
	mov	r2, lr
	ldr	r3, [r4]
	bl	ata_do_cmd
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	ATA_SET_MAX_ADDRESS48
	.word	ATA_SET_MAX_ADDRESS
	.word	AP_PROTO_PIO_OUT
	.word	AP_FLAG_BYT_BLOK_BLOCKS
	.word	AP_FLAG_TLEN_SECT_CNT
	.word	MSG_SIMPLE_Q_TAG
	.word	ATA_HPA_FEAT_SET_PWD
	.word	CAM_DIR_OUT
	.size	atahpa_password, .-atahpa_password
	.comm	MSG_SIMPLE_Q_TAG,4,4
	.comm	CAM_DIR_OUT,4,4
	.comm	ATA_SET_MAX_ADDRESS48,4,4
	.comm	ATA_SET_MAX_ADDRESS,4,4
	.comm	ATA_HPA_FEAT_SET_PWD,4,4
	.comm	AP_PROTO_PIO_OUT,4,4
	.comm	AP_FLAG_TLEN_SECT_CNT,4,4
	.comm	AP_FLAG_BYT_BLOK_BLOCKS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
