	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_execute_command            ## -- Begin function ide_execute_command
	.p2align	4, 0x90
_ide_execute_command:                   ## @ide_execute_command
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	(%r14), %rax
	movq	_ATAPI_PROT_DMA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_ATAPI_PROT_PIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	_IDE_AFLAG_DRQ_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_4
LBB0_3:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	___ide_set_handler
LBB0_4:
	movq	8(%rbx), %rax
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	$400, %edi                      ## imm = 0x190
	callq	_ndelay
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATAPI_PROT_DMA,8,3             ## @ATAPI_PROT_DMA
	.comm	_ATAPI_PROT_PIO,8,3             ## @ATAPI_PROT_PIO
	.comm	_IDE_AFLAG_DRQ_INTERRUPT,4,2    ## @IDE_AFLAG_DRQ_INTERRUPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_execute_command            ; -- Begin function ide_execute_command
	.p2align	2
_ide_execute_command:                   ; @ide_execute_command
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	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
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _ATAPI_PROT_DMA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATAPI_PROT_DMA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _ATAPI_PROT_PIO@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ATAPI_PROT_PIO@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x23]
Lloh6:
	adrp	x9, _IDE_AFLAG_DRQ_INTERRUPT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IDE_AFLAG_DRQ_INTERRUPT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	___ide_set_handler
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w1, [x20, #8]
	mov	x0, x19
	blr	x8
	mov	w0, #400
	bl	_ndelay
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ATAPI_PROT_DMA,8,3             ; @ATAPI_PROT_DMA
	.comm	_ATAPI_PROT_PIO,8,3             ; @ATAPI_PROT_PIO
	.comm	_IDE_AFLAG_DRQ_INTERRUPT,4,2    ; @IDE_AFLAG_DRQ_INTERRUPT
.subsections_via_symbols
