	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdc202xx_test_irq
_pdc202xx_test_irq:                     ## @pdc202xx_test_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_to_pci_dev
	movq	%rax, %rdi
	movl	$4, %esi
	callq	_pci_resource_start
	leaq	29(%rax), %rdi
	callq	_inb
	movl	%eax, %ecx
	andl	$80, %ecx
	xorl	%edx, %edx
	cmpl	$64, %ecx
	sete	%dl
	andl	$5, %eax
	xorl	%ecx, %ecx
	cmpl	$4, %eax
	sete	%cl
	cmpq	$0, (%rbx)
	cmovel	%ecx, %edx
	movzbl	%dl, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pdc202xx_test_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdc202xx_test_irq
_pdc202xx_test_irq:                     ; @pdc202xx_test_irq
	.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	w0, [x0, #8]
	bl	_to_pci_dev
	mov	w1, #4
	bl	_pci_resource_start
	add	x0, x0, #29
	bl	_inb
	ldr	x8, [x19]
	mov	w9, #80
	and	w9, w0, w9
	cmp	w9, #64
	cset	w9, eq
	mov	w10, #5
	and	w10, w0, w10
	cmp	w10, #4
	cset	w10, eq
	cmp	x8, #0
	csel	w0, w10, w9, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pdc202xx_test_irq
.subsections_via_symbols
