	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ataama_freeze
_ataama_freeze:                         ## @ataama_freeze
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r9d
	movq	_CAM_DIR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_AP_PROTO_NON_DATA@GOTPCREL(%rip), %r10
	movq	_AP_EXTEND@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	orl	(%r10), %r8d
	movq	_MSG_SIMPLE_Q_TAG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	movq	_ATA_AMAX_ADDR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r11d
	movq	_ATA_AMAX_ADDR_FREEZE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r14d
	testl	%edx, %edx
	movl	$30000, %ebx                    ## imm = 0x7530
	cmovnel	%edx, %ebx
	subq	$8, %rsp
	movq	%rcx, %rsi
	movl	%r9d, %edx
	movl	%eax, %ecx
	xorl	%r9d, %r9d
	pushq	$1
	pushq	%rbx
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	%r14
	pushq	%r11
	pushq	%r10
	callq	_ata_do_cmd
	addq	$80, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAM_DIR_NONE,4,2               ## @CAM_DIR_NONE
	.comm	_AP_PROTO_NON_DATA,4,2          ## @AP_PROTO_NON_DATA
	.comm	_AP_EXTEND,4,2                  ## @AP_EXTEND
	.comm	_MSG_SIMPLE_Q_TAG,4,2           ## @MSG_SIMPLE_Q_TAG
	.comm	_ATA_AMAX_ADDR,4,2              ## @ATA_AMAX_ADDR
	.comm	_ATA_AMAX_ADDR_FREEZE,4,2       ## @ATA_AMAX_ADDR_FREEZE
	.no_dead_strip	_ataama_freeze
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ataama_freeze
_ataama_freeze:                         ; @ataama_freeze
	.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	x9, x3
	mov	x8, x1
Lloh0:
	adrp	x10, _CAM_DIR_NONE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CAM_DIR_NONE@GOTPAGEOFF]
Lloh2:
	adrp	x11, _AP_PROTO_NON_DATA@GOTPAGE
Lloh3:
	ldr	x11, [x11, _AP_PROTO_NON_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x10]
Lloh5:
	ldr	w10, [x11]
Lloh6:
	adrp	x11, _AP_EXTEND@GOTPAGE
Lloh7:
	ldr	x11, [x11, _AP_EXTEND@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w4, w11, w10
Lloh9:
	adrp	x10, _MSG_SIMPLE_Q_TAG@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MSG_SIMPLE_Q_TAG@GOTPAGEOFF]
Lloh11:
	ldr	w6, [x10]
Lloh12:
	adrp	x10, _ATA_AMAX_ADDR@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ATA_AMAX_ADDR@GOTPAGEOFF]
Lloh14:
	ldr	w7, [x10]
Lloh15:
	adrp	x10, _ATA_AMAX_ADDR_FREEZE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ATA_AMAX_ADDR_FREEZE@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	mov	w11, #30000
	cmp	w2, #0
	csel	w11, w11, w2, eq
	mov	w12, #1
	stp	w11, w12, [sp, #28]
	str	wzr, [sp, #24]
	str	xzr, [sp, #16]
	stur	xzr, [sp, #4]
	str	w10, [sp]
	mov	x1, x9
	mov	x2, x8
	mov	w5, #0
	bl	_ata_do_cmd
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CAM_DIR_NONE,4,2               ; @CAM_DIR_NONE
	.comm	_AP_PROTO_NON_DATA,4,2          ; @AP_PROTO_NON_DATA
	.comm	_AP_EXTEND,4,2                  ; @AP_EXTEND
	.comm	_MSG_SIMPLE_Q_TAG,4,2           ; @MSG_SIMPLE_Q_TAG
	.comm	_ATA_AMAX_ADDR,4,2              ; @ATA_AMAX_ADDR
	.comm	_ATA_AMAX_ADDR_FREEZE,4,2       ; @ATA_AMAX_ADDR_FREEZE
	.no_dead_strip	_ataama_freeze
.subsections_via_symbols
