	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atasecurity_unlock
_atasecurity_unlock:                    ## @atasecurity_unlock
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%ecx, %r10d
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r14
	testl	%r9d, %r9d
	jne	LBB0_2
## %bb.1:
	movq	_ATA_SECURITY_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	movq	%r10, %rbx
	callq	_atasecurity_notify
	movq	%rbx, %r10
LBB0_2:
	movq	_CAM_DIR_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_AP_PROTO_PIO_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_AP_FLAG_BYT_BLOK_BLOCKS@GOTPCREL(%rip), %rax
	movq	_AP_FLAG_TLEN_SECT_CNT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	orl	(%rax), %r9d
	movq	_MSG_SIMPLE_Q_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ATA_SECURITY_UNLOCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	subq	$8, %rsp
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	pushq	$0
	pushq	%r10
	pushq	$4
	pushq	%r12
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	%rbx
	pushq	%rax
	callq	_ata_do_cmd
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_SECURITY_UNLOCK,4,2        ## @ATA_SECURITY_UNLOCK
	.comm	_CAM_DIR_OUT,4,2                ## @CAM_DIR_OUT
	.comm	_AP_PROTO_PIO_OUT,4,2           ## @AP_PROTO_PIO_OUT
	.comm	_AP_FLAG_BYT_BLOK_BLOCKS,4,2    ## @AP_FLAG_BYT_BLOK_BLOCKS
	.comm	_AP_FLAG_TLEN_SECT_CNT,4,2      ## @AP_FLAG_TLEN_SECT_CNT
	.comm	_MSG_SIMPLE_Q_TAG,4,2           ## @MSG_SIMPLE_Q_TAG
	.no_dead_strip	_atasecurity_unlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atasecurity_unlock
_atasecurity_unlock:                    ; @atasecurity_unlock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _ATA_SECURITY_UNLOCK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ATA_SECURITY_UNLOCK@GOTPAGEOFF]
	cbnz	w5, LBB0_2
; %bb.1:
	ldr	w0, [x24]
	mov	x1, x22
	bl	_atasecurity_notify
LBB0_2:
Lloh2:
	adrp	x8, _CAM_DIR_OUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CAM_DIR_OUT@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x8, _AP_PROTO_PIO_OUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AP_PROTO_PIO_OUT@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
Lloh8:
	adrp	x8, _AP_FLAG_BYT_BLOK_BLOCKS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AP_FLAG_BYT_BLOK_BLOCKS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _AP_FLAG_TLEN_SECT_CNT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AP_FLAG_TLEN_SECT_CNT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w5, w9, w8
Lloh14:
	adrp	x8, _MSG_SIMPLE_Q_TAG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_SIMPLE_Q_TAG@GOTPAGEOFF]
Lloh16:
	ldr	w6, [x8]
	ldr	w7, [x24]
	stp	w23, wzr, [sp, #28]
	mov	w8, #4
	str	w8, [sp, #24]
	str	x22, [sp, #16]
	str	wzr, [sp, #8]
	str	xzr, [sp]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_ata_do_cmd
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_SECURITY_UNLOCK,4,2        ; @ATA_SECURITY_UNLOCK
	.comm	_CAM_DIR_OUT,4,2                ; @CAM_DIR_OUT
	.comm	_AP_PROTO_PIO_OUT,4,2           ; @AP_PROTO_PIO_OUT
	.comm	_AP_FLAG_BYT_BLOK_BLOCKS,4,2    ; @AP_FLAG_BYT_BLOK_BLOCKS
	.comm	_AP_FLAG_TLEN_SECT_CNT,4,2      ; @AP_FLAG_TLEN_SECT_CNT
	.comm	_MSG_SIMPLE_Q_TAG,4,2           ; @MSG_SIMPLE_Q_TAG
	.no_dead_strip	_atasecurity_unlock
.subsections_via_symbols
