	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcd_req_sense
_pcd_req_sense:                         ## @pcd_req_sense
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movabsq	$68719476739, %rax              ## imm = 0x1000000003
	movq	%rax, -48(%rbp)
	movl	$0, -40(%rbp)
	leaq	L_.str(%rip), %rcx
	leaq	-48(%rbp), %rsi
	movl	$16, %edx
	callq	_pcd_command
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_mdelay
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movl	$-1, (%r15)
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdx
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_pcd_completion
	movl	$-1, (%r15)
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movl	8(%r15), %esi
	movzbl	-62(%rbp), %ecx
	movsbl	-52(%rbp), %r8d
	movsbl	-51(%rbp), %r9d
	andl	$15, %ecx
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rdx
	callq	_printk
LBB0_4:
	movzbl	-62(%rbp), %eax
	movl	%eax, %ecx
	andl	$15, %ecx
	movzbl	-52(%rbp), %edx
	shll	$8, %edx
	orl	%ecx, %edx
	movzbl	-51(%rbp), %ecx
	shll	$16, %ecx
	orl	%edx, %ecx
	movl	%ecx, (%r15)
	andl	$11, %eax
	cmpl	$2, %eax
	jne	LBB0_6
LBB0_5:
	movl	$1, 4(%r15)
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l___const.pcd_req_sense.rs_cmd:         ## @__const.pcd_req_sense.rs_cmd
	.asciz	"\003\000\000\000\020\000\000\000\000\000\000"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Request sense"

L_.str.1:                               ## @.str.1
	.asciz	"%s: %s: Sense key: %x, ASC: %x, ASQ: %x\n"

	.no_dead_strip	_pcd_req_sense
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcd_req_sense
_pcd_req_sense:                         ; @pcd_req_sense
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	str	wzr, [sp, #32]
	mov	x8, #3
	movk	x8, #16, lsl #32
	str	x8, [sp, #24]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	add	x1, sp, #24
	mov	w2, #16
	bl	_pcd_command
	mov	x21, x0
	mov	w0, #1
	bl	_mdelay
	cbz	w21, LBB0_2
; %bb.1:
	mov	w8, #-1
	str	w8, [x19]
	b	LBB0_5
LBB0_2:
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #8
	mov	x0, x19
	bl	_pcd_completion
	mov	w8, #-1
	str	w8, [x19]
	cbz	x20, LBB0_4
; %bb.3:
	ldr	w1, [x19, #8]
	ldrb	w8, [sp, #10]
	ldrsb	w4, [sp, #20]
	ldrsb	w5, [sp, #21]
	and	w3, w8, #0xf
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_printk
LBB0_4:
	ldrb	w8, [sp, #10]
	and	w9, w8, #0xf
	ldrb	w10, [sp, #20]
	bfi	w9, w10, #8, #8
	ldrb	w10, [sp, #21]
	bfi	w9, w10, #16, #8
	str	w9, [x19]
	mov	w9, #11
	and	w8, w8, w9
	cmp	w8, #2
	b.ne	LBB0_6
LBB0_5:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_6:
	ldr	x8, [sp, #40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.pcd_req_sense.rs_cmd:         ; @__const.pcd_req_sense.rs_cmd
	.asciz	"\003\000\000\000\020\000\000\000\000\000\000"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Request sense"

l_.str.1:                               ; @.str.1
	.asciz	"%s: %s: Sense key: %x, ASC: %x, ASQ: %x\n"

	.no_dead_strip	_pcd_req_sense
.subsections_via_symbols
