	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function execute_drive_cmd
_execute_drive_cmd:                     ## @execute_drive_cmd
	.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
	movq	%rdi, %r14
	movq	8(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	movq	_ATA_PROT_PIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rsi, %rdi
	callq	_blk_rq_sectors
	shll	$9, %eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ide_init_sg_cmd
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ide_map_sg
LBB0_3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_do_rw_taskfile                 ## TAILCALL
LBB0_4:
	movq	$0, (%rsi)
	movq	%rsi, %rdi
	callq	_blk_rq_bytes
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_ide_complete_rq
	movq	_ide_stopped@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_PROT_PIO,8,3               ## @ATA_PROT_PIO
	.comm	_ide_stopped,4,2                ## @ide_stopped
	.no_dead_strip	_execute_drive_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function execute_drive_cmd
_execute_drive_cmd:                     ; @execute_drive_cmd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x1, #8]
	cbz	x20, LBB0_4
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _ATA_PROT_PIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATA_PROT_PIO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x1
	bl	_blk_rq_sectors
	lsl	w1, w0, #9
	mov	x0, x20
	bl	_ide_init_sg_cmd
	mov	x0, x19
	mov	x1, x20
	bl	_ide_map_sg
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_do_rw_taskfile
LBB0_4:
	str	xzr, [x1]
	mov	x0, x1
	bl	_blk_rq_bytes
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_ide_complete_rq
Lloh3:
	adrp	x8, _ide_stopped@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ide_stopped@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_PROT_PIO,8,3               ; @ATA_PROT_PIO
	.comm	_ide_stopped,4,2                ; @ide_stopped
	.no_dead_strip	_execute_drive_cmd
.subsections_via_symbols
