	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_read_irq
_pci_read_irq:                          ## @pci_read_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
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movb	$0, (%rbx)
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	movq	_PCI_INTERRUPT_PIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-9(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_byte
	movb	-9(%rbp), %al
	movb	%al, (%rbx)
	testb	%al, %al
	je	LBB0_4
## %bb.3:
	movq	_PCI_INTERRUPT_LINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-9(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_byte
	movb	-9(%rbp), %al
LBB0_5:
	movb	%al, 1(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_INTERRUPT_PIN,4,2          ## @PCI_INTERRUPT_PIN
	.comm	_PCI_INTERRUPT_LINE,4,2         ## @PCI_INTERRUPT_LINE
	.no_dead_strip	_pci_read_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_read_irq
_pci_read_irq:                          ; @pci_read_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w8, #0
	strb	wzr, [x19]
	b	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _PCI_INTERRUPT_PIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_INTERRUPT_PIN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #15
	mov	x0, x19
	bl	_pci_read_config_byte
	ldrb	w8, [sp, #15]
	strb	w8, [x19]
	cbz	w8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _PCI_INTERRUPT_LINE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_INTERRUPT_LINE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #15
	mov	x0, x19
	bl	_pci_read_config_byte
	ldrb	w8, [sp, #15]
LBB0_4:
	strb	w8, [x19, #1]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_INTERRUPT_PIN,4,2          ; @PCI_INTERRUPT_PIN
	.comm	_PCI_INTERRUPT_LINE,4,2         ; @PCI_INTERRUPT_LINE
	.no_dead_strip	_pci_read_irq
.subsections_via_symbols
