	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atahpa
_atahpa:                                ## @atahpa
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r15
	movl	%ecx, %r13d
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	leaq	-64(%rbp), %rdi
	xorl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_ATA_HPA_ACTION_PRINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	LJTI0_0(%rip), %r12
	movl	$0, -88(%rbp)                   ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movl	$1, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$132, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-80(%rax), %ecx
	cmpl	$41, %ecx
	ja	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r12,%rcx,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -68(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-64(%rbp), %edi
	movl	$4, %esi
	movl	$112, %edx
	callq	_ata_getpwd
	testl	%eax, %eax
	jne	LBB0_21
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movl	$1, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$129, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-64(%rbp), %edi
	movl	$4, %esi
	movl	$85, %edx
	callq	_ata_getpwd
	testl	%eax, %eax
	jne	LBB0_21
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movl	$1, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$128, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movl	$1, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$131, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	incl	%eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoumax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	incl	%ebx
	movl	$130, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	-88(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.14:
	cmpl	$2, %ebx
	jl	LBB0_18
## %bb.15:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_20
LBB0_18:
	leaq	-128(%rbp), %rsi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_get_cgd
	testq	%rax, %rax
	je	LBB0_23
## %bb.19:
	leaq	L_.str.1(%rip), %rdi
LBB0_20:
	callq	_warnx
LBB0_21:
	movl	$1, %r14d
LBB0_22:
	movl	%r14d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	%rbx, %rdi
	callq	_cam_getccb
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:
	movq	%rax, %r14
	leaq	-56(%rbp), %r8
	movq	%rbx, %rdi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	-84(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	movq	%rax, %rcx
	callq	_ata_do_identify
	testl	%eax, %eax
	je	LBB0_27
## %bb.25:
	movq	%r14, %rdi
	callq	_cam_freeccb
	jmp	LBB0_21
LBB0_26:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_20
LBB0_27:
	movq	-120(%rbp), %r12                ## 8-byte Reload
	testl	%r12d, %r12d
	jne	LBB0_29
## %bb.28:
	movq	(%rbx), %rsi
	movl	8(%rbx), %edx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-56(%rbp), %rdi
	callq	_ata_print_ident
	movq	%rbx, %rdi
	callq	_camxferrate
LBB0_29:
	movq	_ATA_HPA_ACTION_PRINT@GOTPCREL(%rip), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rax), %ecx
	jne	LBB0_32
## %bb.30:
	movq	%r14, %rcx
	movq	$0, -96(%rbp)
	movq	-56(%rbp), %r8
	movq	_ATA_SUPPORT_PROTECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, (%r8)
	je	LBB0_39
## %bb.31:
	leaq	-96(%rbp), %r9
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movq	%rcx, %rbx
	callq	_ata_read_native_max
	movq	-56(%rbp), %r8
	movq	-96(%rbp), %rsi
	jmp	LBB0_40
LBB0_32:
	movq	-56(%rbp), %r8
	movq	_ATA_SUPPORT_PROTECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r8)
	je	LBB0_41
## %bb.33:
	movl	4(%r8), %r15d
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_35
## %bb.34:
	movq	_ATA_SUPPORT_MAXSECURITY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_42
LBB0_35:
	addl	$-128, %ecx
	cmpl	$4, %ecx
	ja	LBB0_45
## %bb.36:
	movq	_ATA_SUPPORT_ADDRESS48@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_37:
	leaq	-64(%rbp), %r9
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movq	%r14, %rcx
	movl	%r15d, %r8d
	callq	_atahpa_unlock
	movq	%r14, %rcx
	movl	%eax, %r14d
	orl	%eax, %r12d
	jne	LBB0_62
## %bb.38:
	leaq	L_str.11(%rip), %rdi
	jmp	LBB0_60
LBB0_39:
	xorl	%esi, %esi
	movq	%rcx, %rbx
LBB0_40:
	movq	%r8, %rdi
	movl	$1, %edx
	callq	_atahpa_print
	movq	%rbx, %rdi
	jmp	LBB0_63
LBB0_41:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_43
LBB0_42:
	leaq	L_.str.5(%rip), %rdi
LBB0_43:
	callq	_warnx
LBB0_44:
	movq	%r14, %rdi
	callq	_cam_freeccb
	movq	-56(%rbp), %rdi
	callq	_free
	jmp	LBB0_21
LBB0_45:
	leaq	L_.str.10(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movq	%r14, %rcx
	jmp	LBB0_61
LBB0_46:
	leaq	-64(%rbp), %r9
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movq	%r14, %rcx
	movl	%r15d, %r8d
	callq	_atahpa_password
	movq	%r14, %rcx
	movl	%eax, %r14d
	orl	%eax, %r12d
	jne	LBB0_62
## %bb.47:
	leaq	L_str.13(%rip), %rdi
	jmp	LBB0_60
LBB0_48:
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_51
## %bb.49:
	movq	%rbx, %rdi
	movq	%r8, %rsi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	callq	_atahpa_set_confirm
	testl	%eax, %eax
	je	LBB0_44
## %bb.50:
	movq	-56(%rbp), %r8
LBB0_51:
	leaq	-96(%rbp), %r9
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movq	%r14, %rcx
	callq	_ata_read_native_max
	movq	%r14, %rcx
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_62
## %bb.52:
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movq	%rcx, %rbx
	movl	%r15d, %r8d
	movq	-112(%rbp), %r9                 ## 8-byte Reload
	callq	_atahpa_set_max
	movq	%rbx, %rcx
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_62
## %bb.53:
	movq	%rcx, %rbx
	xorl	%r14d, %r14d
	testl	%r12d, %r12d
	jne	LBB0_55
## %bb.54:
	leaq	-56(%rbp), %r8
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	callq	_ata_do_identify
	movl	%eax, %r14d
	movq	-56(%rbp), %rdi
	movq	-96(%rbp), %rsi
	movl	$1, %edx
	callq	_atahpa_print
LBB0_55:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_reprobe
	movq	%rbx, %rcx
	jmp	LBB0_62
LBB0_56:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movq	%r14, %rcx
	movl	%r15d, %r8d
	callq	_atahpa_lock
	movq	%r14, %rcx
	movl	%eax, %r14d
	orl	%eax, %r12d
	jne	LBB0_62
## %bb.57:
	leaq	L_str.12(%rip), %rdi
	jmp	LBB0_60
LBB0_58:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movq	%r14, %rcx
	movl	%r15d, %r8d
	callq	_atahpa_freeze_lock
	movq	%r14, %rcx
	movl	%eax, %r14d
	orl	%eax, %r12d
	jne	LBB0_62
## %bb.59:
	leaq	L_str(%rip), %rdi
LBB0_60:
	movq	%rcx, %rbx
	callq	_puts
	movq	%rbx, %rcx
LBB0_61:
	xorl	%r14d, %r14d
LBB0_62:
	movq	%rcx, %rdi
LBB0_63:
	callq	_cam_freeccb
	movq	-56(%rbp), %rdi
	callq	_free
	jmp	LBB0_22
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_1
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_11
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_12
.set L0_1_set_37, LBB0_37-LJTI0_1
.set L0_1_set_46, LBB0_46-LJTI0_1
.set L0_1_set_48, LBB0_48-LJTI0_1
.set L0_1_set_56, LBB0_56-LJTI0_1
.set L0_1_set_58, LBB0_58-LJTI0_1
LJTI0_1:
	.long	L0_1_set_37
	.long	L0_1_set_46
	.long	L0_1_set_48
	.long	L0_1_set_56
	.long	L0_1_set_58
	.end_data_region
                                        ## -- End function
	.comm	_ATA_HPA_ACTION_PRINT,4,2       ## @ATA_HPA_ACTION_PRINT
	.comm	_optarg,4,2                     ## @optarg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many hpa actions specified"

L_.str.1:                               ## @.str.1
	.asciz	"couldn't get CGD"

L_.str.2:                               ## @.str.2
	.asciz	"couldn't allocate CCB"

L_.str.3:                               ## @.str.3
	.asciz	"%s%d: "

	.comm	_ATA_SUPPORT_PROTECTED,4,2      ## @ATA_SUPPORT_PROTECTED
L_.str.4:                               ## @.str.4
	.asciz	"HPA is not supported by this device"

	.comm	_ATA_SUPPORT_MAXSECURITY,4,2    ## @ATA_SUPPORT_MAXSECURITY
L_.str.5:                               ## @.str.5
	.asciz	"HPA Security is not supported by this device"

	.comm	_ATA_SUPPORT_ADDRESS48,4,2      ## @ATA_SUPPORT_ADDRESS48
L_.str.10:                              ## @.str.10
	.asciz	"Option currently not supported"

L_str:                                  ## @str
	.asciz	"HPA has been frozen"

L_str.11:                               ## @str.11
	.asciz	"HPA has been unlocked"

L_str.12:                               ## @str.12
	.asciz	"HPA has been locked"

L_str.13:                               ## @str.13
	.asciz	"HPA password has been set"

	.no_dead_strip	_atahpa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atahpa
_atahpa:                                ; @atahpa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x5
	mov	x25, x4
	mov	x26, x3
	stp	w1, w2, [sp, #24]               ; 8-byte Folded Spill
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w27, #0
	mov	w28, #0
	mov	w20, #0
	str	wzr, [sp, #44]                  ; 4-byte Folded Spill
	mov	w21, #0
	mov	x24, #0
Lloh0:
	adrp	x8, _ATA_HPA_ACTION_PRINT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_HPA_ACTION_PRINT@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x23, lJTI0_0@PAGE
Lloh4:
	add	x23, x23, lJTI0_0@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w20, w20, #1
	mov	w21, #1
	mov	w19, #132
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x26
	mov	x1, x25
	mov	x2, x22
	bl	_getopt
	sub	w8, w0, #80
	cmp	w8, #41
	b.hi	LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x23, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #56]
	mov	w1, #4
	mov	w2, #112
	bl	_ata_getpwd
	cbnz	w0, LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w20, w20, #1
	mov	w21, #1
	mov	w19, #129
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #56]
	mov	w1, #4
	mov	w2, #85
	bl	_ata_getpwd
	cbnz	w0, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w20, w20, #1
	mov	w21, #1
	mov	w19, #128
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w20, w20, #1
	mov	w21, #1
	mov	w19, #131
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w27, w27, #1
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh5:
	adrp	x8, _optarg@GOTPAGE
Lloh6:
	ldr	x8, [x8, _optarg@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, #0
	mov	w2, #0
	bl	_strtoumax
	mov	x24, x0
	add	w20, w20, #1
	mov	w19, #130
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w28, w28, #1
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.14:
	cmp	w20, #2
	b.lt	LBB0_16
; %bb.15:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_18
LBB0_16:
	add	x1, sp, #64
	ldr	x20, [sp, #32]                  ; 8-byte Folded Reload
	mov	x0, x20
	bl	_get_cgd
	cbz	x0, LBB0_21
; %bb.17:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_18:
	bl	_warnx
LBB0_19:
	mov	w25, #1
LBB0_20:
	mov	x0, x25
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_21:
	mov	x0, x20
	bl	_cam_getccb
	cbz	x0, LBB0_24
; %bb.22:
	mov	x22, x0
	add	x4, sp, #72
	mov	x0, x20
	ldp	w25, w23, [sp, #24]             ; 8-byte Folded Reload
	mov	x1, x25
	mov	x2, x23
	mov	x3, x22
	bl	_ata_do_identify
	cbz	w0, LBB0_25
; %bb.23:
	mov	x0, x22
	bl	_cam_freeccb
	b	LBB0_19
LBB0_24:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_25:
	cbnz	w27, LBB0_27
; %bb.26:
	ldr	x8, [x20]
	ldr	w9, [x20, #8]
	stp	x8, x9, [sp]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	x0, [sp, #72]
	bl	_ata_print_ident
	mov	x0, x20
	bl	_camxferrate
LBB0_27:
Lloh16:
	adrp	x8, _ATA_HPA_ACTION_PRINT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ATA_HPA_ACTION_PRINT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ne	LBB0_30
; %bb.28:
	str	xzr, [sp, #48]
	ldr	x4, [sp, #72]
	ldr	w8, [x4]
Lloh19:
	adrp	x9, _ATA_SUPPORT_PROTECTED@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ATA_SUPPORT_PROTECTED@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_37
; %bb.29:
	add	x5, sp, #48
	mov	x0, x20
	mov	x1, x25
	mov	x2, x23
	mov	x3, x22
	bl	_ata_read_native_max
	ldr	x4, [sp, #72]
	ldr	x1, [sp, #48]
	b	LBB0_38
LBB0_30:
	ldr	x4, [sp, #72]
	ldr	w8, [x4]
Lloh22:
	adrp	x9, _ATA_SUPPORT_PROTECTED@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ATA_SUPPORT_PROTECTED@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_39
; %bb.31:
	ldr	w8, [x4, #4]
	cbz	w21, LBB0_33
; %bb.32:
Lloh25:
	adrp	x9, _ATA_SUPPORT_MAXSECURITY@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ATA_SUPPORT_MAXSECURITY@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_40
LBB0_33:
	sub	w9, w19, #128
	cmp	w9, #4
	b.hi	LBB0_43
; %bb.34:
Lloh28:
	adrp	x10, _ATA_SUPPORT_ADDRESS48@GOTPAGE
Lloh29:
	ldr	x10, [x10, _ATA_SUPPORT_ADDRESS48@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	and	w26, w10, w8
Lloh31:
	adrp	x8, lJTI0_1@PAGE
Lloh32:
	add	x8, x8, lJTI0_1@PAGEOFF
	adr	x10, LBB0_35
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_35:
	add	x5, sp, #56
	mov	x0, x20
	mov	x1, x25
	mov	x2, x23
	mov	x3, x22
	mov	x4, x26
	bl	_atahpa_unlock
	mov	x25, x0
	orr	w8, w0, w27
	cbnz	w8, LBB0_59
; %bb.36:
Lloh33:
	adrp	x0, l_str.11@PAGE
Lloh34:
	add	x0, x0, l_str.11@PAGEOFF
	b	LBB0_57
LBB0_37:
	mov	x1, #0
LBB0_38:
	mov	x0, x4
	mov	w2, #1
	bl	_atahpa_print
	mov	x0, x22
	bl	_cam_freeccb
	ldr	x0, [sp, #72]
	bl	_free
	mov	w25, #0
	b	LBB0_20
LBB0_39:
Lloh35:
	adrp	x0, l_.str.4@PAGE
Lloh36:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_41
LBB0_40:
Lloh37:
	adrp	x0, l_.str.5@PAGE
Lloh38:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_41:
	bl	_warnx
LBB0_42:
	mov	x0, x22
	bl	_cam_freeccb
	ldr	x0, [sp, #72]
	bl	_free
	b	LBB0_19
LBB0_43:
Lloh39:
	adrp	x1, l_.str.10@PAGE
Lloh40:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w0, #1
	bl	_errx
	b	LBB0_58
LBB0_44:
	add	x5, sp, #56
	mov	x0, x20
	mov	x1, x25
	mov	x2, x23
	mov	x3, x22
	mov	x4, x26
	bl	_atahpa_password
	mov	x25, x0
	orr	w8, w0, w27
	cbnz	w8, LBB0_59
; %bb.45:
Lloh41:
	adrp	x0, l_str.13@PAGE
Lloh42:
	add	x0, x0, l_str.13@PAGEOFF
	b	LBB0_57
LBB0_46:
	cbnz	w28, LBB0_49
; %bb.47:
	mov	x0, x20
	mov	x1, x4
	mov	x2, x24
	ldr	w3, [sp, #44]                   ; 4-byte Folded Reload
	bl	_atahpa_set_confirm
	cbz	w0, LBB0_42
; %bb.48:
	ldr	x4, [sp, #72]
LBB0_49:
	add	x5, sp, #48
	mov	x0, x20
	mov	x1, x25
	mov	x2, x23
	mov	x3, x22
	bl	_ata_read_native_max
	mov	x1, x25
	mov	x25, x0
	cbnz	w0, LBB0_59
; %bb.50:
	mov	x0, x20
	mov	x2, x23
	mov	x3, x22
	mov	x4, x26
	mov	x5, x24
	ldr	w6, [sp, #44]                   ; 4-byte Folded Reload
	bl	_atahpa_set_max
	mov	x25, x0
	cbnz	w0, LBB0_59
; %bb.51:
	cbz	w27, LBB0_60
; %bb.52:
	mov	w25, #0
	b	LBB0_61
LBB0_53:
	mov	x0, x20
	mov	x1, x25
	mov	x2, x23
	mov	x3, x22
	mov	x4, x26
	bl	_atahpa_lock
	mov	x25, x0
	orr	w8, w0, w27
	cbnz	w8, LBB0_59
; %bb.54:
Lloh43:
	adrp	x0, l_str.12@PAGE
Lloh44:
	add	x0, x0, l_str.12@PAGEOFF
	b	LBB0_57
LBB0_55:
	mov	x0, x20
	mov	x1, x25
	mov	x2, x23
	mov	x3, x22
	mov	x4, x26
	bl	_atahpa_freeze_lock
	mov	x25, x0
	orr	w8, w0, w27
	cbnz	w8, LBB0_59
; %bb.56:
Lloh45:
	adrp	x0, l_str@PAGE
Lloh46:
	add	x0, x0, l_str@PAGEOFF
LBB0_57:
	bl	_puts
LBB0_58:
	mov	w25, #0
LBB0_59:
	mov	x0, x22
	bl	_cam_freeccb
	ldr	x0, [sp, #72]
	bl	_free
	b	LBB0_20
LBB0_60:
	add	x4, sp, #72
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	ldp	w1, w2, [sp, #24]               ; 8-byte Folded Reload
	mov	x3, x22
	bl	_ata_do_identify
	mov	x25, x0
	ldr	x0, [sp, #72]
	ldr	x1, [sp, #48]
	mov	w2, #1
	bl	_atahpa_print
LBB0_61:
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_reprobe
	b	LBB0_59
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_10-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
lJTI0_1:
	.byte	(LBB0_35-LBB0_35)>>2
	.byte	(LBB0_44-LBB0_35)>>2
	.byte	(LBB0_46-LBB0_35)>>2
	.byte	(LBB0_53-LBB0_35)>>2
	.byte	(LBB0_55-LBB0_35)>>2
                                        ; -- End function
	.comm	_ATA_HPA_ACTION_PRINT,4,2       ; @ATA_HPA_ACTION_PRINT
	.comm	_optarg,4,2                     ; @optarg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many hpa actions specified"

l_.str.1:                               ; @.str.1
	.asciz	"couldn't get CGD"

l_.str.2:                               ; @.str.2
	.asciz	"couldn't allocate CCB"

l_.str.3:                               ; @.str.3
	.asciz	"%s%d: "

	.comm	_ATA_SUPPORT_PROTECTED,4,2      ; @ATA_SUPPORT_PROTECTED
l_.str.4:                               ; @.str.4
	.asciz	"HPA is not supported by this device"

	.comm	_ATA_SUPPORT_MAXSECURITY,4,2    ; @ATA_SUPPORT_MAXSECURITY
l_.str.5:                               ; @.str.5
	.asciz	"HPA Security is not supported by this device"

	.comm	_ATA_SUPPORT_ADDRESS48,4,2      ; @ATA_SUPPORT_ADDRESS48
l_.str.10:                              ; @.str.10
	.asciz	"Option currently not supported"

l_str:                                  ; @str
	.asciz	"HPA has been frozen"

l_str.11:                               ; @str.11
	.asciz	"HPA has been unlocked"

l_str.12:                               ; @str.12
	.asciz	"HPA has been locked"

l_str.13:                               ; @str.13
	.asciz	"HPA password has been set"

	.no_dead_strip	_atahpa
.subsections_via_symbols
