	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atahpa_freeze_lock
_atahpa_freeze_lock:                    ## @atahpa_freeze_lock
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r10d
	movl	%edx, %eax
	movl	%esi, %edx
	movq	_AP_PROTO_NON_DATA@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	testl	%r10d, %r10d
	jne	LBB0_1
## %bb.2:
	movq	_ATA_SET_MAX_ADDRESS@GOTPCREL(%rip), %rsi
	jmp	LBB0_3
LBB0_1:
	movq	_ATA_SET_MAX_ADDRESS48@GOTPCREL(%rip), %rsi
LBB0_3:
	movl	(%rsi), %r11d
	movq	_CAM_DIR_NONE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	movq	_MSG_SIMPLE_Q_TAG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r14d
	movq	_ATA_HPA_FEAT_FREEZE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r15d
	testl	%eax, %eax
	movl	$1000, %ebx                     ## imm = 0x3E8
	cmovnel	%eax, %ebx
	subq	$8, %rsp
	movq	%rcx, %rsi
	movl	%r9d, %ecx
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	%rbx
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	%r15
	pushq	%r11
	pushq	%r14
	callq	_ata_do_cmd
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AP_PROTO_NON_DATA,4,2          ## @AP_PROTO_NON_DATA
	.comm	_ATA_SET_MAX_ADDRESS48,4,2      ## @ATA_SET_MAX_ADDRESS48
	.comm	_ATA_SET_MAX_ADDRESS,4,2        ## @ATA_SET_MAX_ADDRESS
	.comm	_CAM_DIR_NONE,4,2               ## @CAM_DIR_NONE
	.comm	_MSG_SIMPLE_Q_TAG,4,2           ## @MSG_SIMPLE_Q_TAG
	.comm	_ATA_HPA_FEAT_FREEZE,4,2        ## @ATA_HPA_FEAT_FREEZE
	.no_dead_strip	_atahpa_freeze_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atahpa_freeze_lock
_atahpa_freeze_lock:                    ; @atahpa_freeze_lock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x10, x3
	mov	x8, x1
	cmp	w4, #0
Lloh0:
	adrp	x9, _AP_PROTO_NON_DATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AP_PROTO_NON_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x11, _ATA_SET_MAX_ADDRESS48@GOTPAGE
Lloh4:
	ldr	x11, [x11, _ATA_SET_MAX_ADDRESS48@GOTPAGEOFF]
Lloh5:
	adrp	x12, _ATA_SET_MAX_ADDRESS@GOTPAGE
Lloh6:
	ldr	x12, [x12, _ATA_SET_MAX_ADDRESS@GOTPAGEOFF]
	csel	x11, x12, x11, eq
	ldr	w7, [x11]
Lloh7:
	adrp	x11, _CAM_DIR_NONE@GOTPAGE
Lloh8:
	ldr	x11, [x11, _CAM_DIR_NONE@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x11]
Lloh10:
	adrp	x11, _MSG_SIMPLE_Q_TAG@GOTPAGE
Lloh11:
	ldr	x11, [x11, _MSG_SIMPLE_Q_TAG@GOTPAGEOFF]
Lloh12:
	ldr	w6, [x11]
Lloh13:
	adrp	x11, _ATA_HPA_FEAT_FREEZE@GOTPAGE
Lloh14:
	ldr	x11, [x11, _ATA_HPA_FEAT_FREEZE@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	mov	w12, #1000
	cmp	w2, #0
	csel	w12, w12, w2, eq
	stp	w12, w4, [sp, #28]
	str	wzr, [sp, #24]
	str	xzr, [sp, #16]
	stur	xzr, [sp, #4]
	str	w11, [sp]
	mov	x1, x10
	mov	x2, x8
	mov	x4, x9
	mov	w5, #0
	bl	_ata_do_cmd
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AP_PROTO_NON_DATA,4,2          ; @AP_PROTO_NON_DATA
	.comm	_ATA_SET_MAX_ADDRESS48,4,2      ; @ATA_SET_MAX_ADDRESS48
	.comm	_ATA_SET_MAX_ADDRESS,4,2        ; @ATA_SET_MAX_ADDRESS
	.comm	_CAM_DIR_NONE,4,2               ; @CAM_DIR_NONE
	.comm	_MSG_SIMPLE_Q_TAG,4,2           ; @MSG_SIMPLE_Q_TAG
	.comm	_ATA_HPA_FEAT_FREEZE,4,2        ; @ATA_HPA_FEAT_FREEZE
	.no_dead_strip	_atahpa_freeze_lock
.subsections_via_symbols
