	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_pci_irq_lookup
_acpi_pci_irq_lookup:                   ## @acpi_pci_irq_lookup
	.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	%esi, %r13d
	movq	%rdi, %rbx
	callq	_acpi_pci_irq_find_prt_entry
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_pci_name
	movl	%r13d, %edi
	callq	_pin_name
LBB0_7:
	movl	%eax, %edi
	callq	_ACPI_DEBUG_PRINT
	jmp	LBB0_12
LBB0_1:
	movq	_PCI_CLASS_BRIDGE_CARDBUS@GOTPCREL(%rip), %r14
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_acpi_pci_irq_find_prt_entry
	testq	%rax, %rax
	jne	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r12
	movq	16(%rbx), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_pci_swizzle_interrupt_pin
	movl	%eax, %r13d
	movl	(%rbx), %eax
	sarl	$8, %eax
	cmpl	(%r14), %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %r13d
	testl	%r13d, %r13d
	jne	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	_pci_name
	movl	%eax, %edi
	callq	_ACPI_DEBUG_PRINT
	jmp	LBB0_11
LBB0_10:
	addq	$8, %r12
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_pin_name
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_11:
	xorl	%r15d, %r15d
LBB0_12:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_pci_name
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_pin_name
	movq	%rbx, %rdi
	callq	_pci_name
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
	.comm	_PCI_CLASS_BRIDGE_CARDBUS,4,2   ## @PCI_CLASS_BRIDGE_CARDBUS
	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.asciz	"can't derive routing for PCI INT %c\n"

	.no_dead_strip	_acpi_pci_irq_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_pci_irq_lookup
_acpi_pci_irq_lookup:                   ; @acpi_pci_irq_lookup
	.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	x19, x1
	mov	x20, x0
	bl	_acpi_pci_irq_find_prt_entry
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	bl	_pci_name
	mov	x0, x19
	bl	_pin_name
LBB0_2:
	bl	_ACPI_DEBUG_PRINT
	b	LBB0_12
LBB0_3:
Lloh0:
	adrp	x24, _PCI_CLASS_BRIDGE_CARDBUS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PCI_CLASS_BRIDGE_CARDBUS@GOTPAGEOFF]
	mov	x23, x19
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, x0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_acpi_pci_irq_find_prt_entry
	cbnz	x0, LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x20
	ldr	x8, [x20, #16]
	ldr	x20, [x8]
	cbz	x20, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_pci_swizzle_interrupt_pin
	ldr	w8, [x20]
	ldr	w9, [x24]
	cmp	w9, w8, asr #8
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w23, [x20, #4]
	cbnz	w23, LBB0_5
; %bb.9:
	mov	x0, x20
	bl	_pci_name
	bl	_ACPI_DEBUG_PRINT
	b	LBB0_11
LBB0_10:
	add	x20, x22, #8
	mov	x0, x19
	bl	_pin_name
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_11:
	mov	x21, #0
LBB0_12:
	mov	x0, x21
	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
	ret
LBB0_13:
	mov	x21, x0
	mov	x0, x22
	bl	_pci_name
	mov	x0, x19
	bl	_pin_name
	mov	x0, x20
	bl	_pci_name
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
	.comm	_PCI_CLASS_BRIDGE_CARDBUS,4,2   ; @PCI_CLASS_BRIDGE_CARDBUS
	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.asciz	"can't derive routing for PCI INT %c\n"

	.no_dead_strip	_acpi_pci_irq_lookup
.subsections_via_symbols
