	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd648_clear_irq
_cmd648_clear_irq:                      ## @cmd648_clear_irq
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movl	8(%rbx), %edi
	callq	_to_pci_dev
	movq	%rax, %rdi
	movl	$4, %esi
	callq	_pci_resource_start
	cmpq	$0, (%rbx)
	movq	_MRDMODE_INTR_CH1@GOTPCREL(%rip), %r14
	movq	_MRDMODE_INTR_CH0@GOTPCREL(%rip), %r15
	movq	%r14, %rcx
	cmoveq	%r15, %rcx
	movl	(%rcx), %r12d
	leaq	1(%rax), %rbx
	movq	%rbx, %rdi
	callq	_inb
	movl	(%r14), %edi
	orl	(%r15), %edi
	notl	%edi
	andl	%eax, %edi
	orl	%r12d, %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outb                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MRDMODE_INTR_CH1,4,2           ## @MRDMODE_INTR_CH1
	.comm	_MRDMODE_INTR_CH0,4,2           ## @MRDMODE_INTR_CH0
	.no_dead_strip	_cmd648_clear_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd648_clear_irq
_cmd648_clear_irq:                      ; @cmd648_clear_irq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x19, [x0]
	ldr	w0, [x19, #8]
	bl	_to_pci_dev
	mov	w1, #4
	bl	_pci_resource_start
	ldr	x8, [x19]
Lloh0:
	adrp	x20, _MRDMODE_INTR_CH1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MRDMODE_INTR_CH1@GOTPAGEOFF]
Lloh2:
	adrp	x21, _MRDMODE_INTR_CH0@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MRDMODE_INTR_CH0@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x21, x20, eq
	ldr	w22, [x8]
	add	x19, x0, #1
	mov	x0, x19
	bl	_inb
	ldr	w8, [x21]
	ldr	w9, [x20]
	orr	w8, w9, w8
	bic	w8, w0, w8
	orr	w0, w8, w22
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_outb
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MRDMODE_INTR_CH1,4,2           ; @MRDMODE_INTR_CH1
	.comm	_MRDMODE_INTR_CH0,4,2           ; @MRDMODE_INTR_CH0
	.no_dead_strip	_cmd648_clear_irq
.subsections_via_symbols
