	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pt_req_sense
_pt_req_sense:                          ## @pt_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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_ATAPI_REQ_SENSE@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -44(%rbp)
	movq	$268435456, -43(%rbp)           ## imm = 0x10000000
	movl	$0, -36(%rbp)
	leaq	L_.str(%rip), %rcx
	leaq	-44(%rbp), %rsi
	movl	$16, %edx
	callq	_pt_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	_pt_completion
	movl	$-1, (%r15)
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.3:
	movl	4(%r15), %esi
	movzbl	-62(%rbp), %edx
	movsbl	-52(%rbp), %ecx
	movsbl	-51(%rbp), %r8d
	andl	$15, %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_printk
LBB0_4:
	movzbl	-62(%rbp), %eax
	andl	$15, %eax
	movzbl	-52(%rbp), %ecx
	shll	$8, %ecx
	orl	%eax, %ecx
	movzbl	-51(%rbp), %eax
	shll	$16, %eax
	orl	%ecx, %eax
	movl	%eax, (%r15)
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ATAPI_REQ_SENSE,4,2            ## @ATAPI_REQ_SENSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Request sense"

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

	.no_dead_strip	_pt_req_sense
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pt_req_sense
_pt_req_sense:                          ; @pt_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]
Lloh3:
	adrp	x9, _ATAPI_REQ_SENSE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATAPI_REQ_SENSE@GOTPAGEOFF]
	str	x8, [sp, #40]
Lloh5:
	ldr	w8, [x9]
	strb	w8, [sp, #28]
	mov	w8, #268435456
	stur	x8, [sp, #29]
	str	wzr, [sp, #36]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	add	x1, sp, #28
	mov	w2, #16
	bl	_pt_command
	mov	x21, x0
	mov	w0, #1
	bl	_mdelay
	cbz	w21, LBB0_2
; %bb.1:
	mov	w8, #-1
	b	LBB0_5
LBB0_2:
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #12
	mov	x0, x19
	bl	_pt_completion
	mov	w8, #-1
	str	w8, [x19]
	cbnz	w20, LBB0_4
; %bb.3:
	ldr	w1, [x19, #4]
	ldrb	w8, [sp, #14]
	ldrsb	w3, [sp, #24]
	ldrsb	w4, [sp, #25]
	and	w2, w8, #0xf
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
LBB0_4:
	ldrb	w8, [sp, #14]
	and	w8, w8, #0xf
	ldrb	w9, [sp, #24]
	bfi	w8, w9, #8, #8
	ldrb	w9, [sp, #25]
	bfi	w8, w9, #16, #8
LBB0_5:
	str	w8, [x19]
	ldr	x8, [sp, #40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ATAPI_REQ_SENSE,4,2            ; @ATAPI_REQ_SENSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Request sense"

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

	.no_dead_strip	_pt_req_sense
.subsections_via_symbols
