	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_pci_irq_enable            ## -- Begin function acpi_pci_irq_enable
	.p2align	4, 0x90
_acpi_pci_irq_enable:                   ## @acpi_pci_irq_enable
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ACPI_LEVEL_SENSITIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_ACPI_ACTIVE_LOW@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -68(%rbp)
	movq	$0, -80(%rbp)
	movl	12(%rdi), %r12d
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_acpi_pci_irq_lookup
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	8(%rax), %rdi
	movl	(%rax), %r15d
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	leaq	-72(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	leaq	-80(%rbp), %r8
	movl	%r15d, %esi
	callq	_acpi_pci_link_allocate_irq
	movl	%eax, %r15d
LBB0_7:
	testl	%r15d, %r15d
	js	LBB0_8
## %bb.11:
	leaq	8(%r14), %r13
	movl	-72(%rbp), %edx
	movl	-68(%rbp), %ecx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_acpi_register_gsi
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movl	%ebx, 4(%r14)
	movq	-80(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.14:
	leaq	L_.str.5(%rip), %rdx
	leaq	-64(%rbp), %rdi
	movl	$16, %esi
	callq	_snprintf
	jmp	LBB0_16
LBB0_1:
	movq	%r14, %rdi
	callq	_pci_name
	movl	%eax, %edi
	callq	_ACPI_DEBUG_PRINT
	jmp	LBB0_17
LBB0_3:
	movl	(%r14), %eax
	movl	%eax, %ecx
	sarl	$8, %ecx
	movq	_PCI_CLASS_STORAGE_IDE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	andl	$5, %eax
	je	LBB0_18
LBB0_8:
	leaq	8(%r14), %r15
	movl	%r12d, %edi
	callq	_pin_name
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_warn
	movl	4(%r14), %esi
	leal	-1(%rsi), %eax
	cmpl	$14, %eax
	ja	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_printk
	movl	4(%r14), %esi
	movq	_ACPI_LEVEL_SENSITIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movq	%r15, %rdi
	callq	_acpi_register_gsi
	jmp	LBB0_18
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printk
	jmp	LBB0_18
LBB0_12:
	movl	%r12d, %edi
	callq	_pin_name
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_dev_warn
	jmp	LBB0_18
LBB0_15:
	movb	$0, -64(%rbp)
LBB0_16:
	movl	%r12d, %edi
	callq	_pin_name
	movl	-72(%rbp), %ecx
	movq	_ACPI_LEVEL_SENSITIVE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	leaq	L_.str.7(%rip), %rcx
	leaq	L_.str.8(%rip), %r9
	cmoveq	%rcx, %r9
	movl	-68(%rbp), %ecx
	movq	_ACPI_ACTIVE_LOW@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	leaq	L_.str.9(%rip), %rcx
	leaq	L_.str.10(%rip), %rbx
	cmoveq	%rcx, %rbx
	movl	4(%r14), %r10d
	leaq	L_.str.6(%rip), %rsi
	leaq	-64(%rbp), %rcx
	movq	%r13, %rdi
	movl	%eax, %edx
	movl	%r15d, %r8d
	pushq	%r10
	pushq	%rbx
	callq	_dev_info
	addq	$16, %rsp
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_LEVEL_SENSITIVE,4,2       ## @ACPI_LEVEL_SENSITIVE
	.comm	_ACPI_ACTIVE_LOW,4,2            ## @ACPI_ACTIVE_LOW
	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
	.comm	_PCI_CLASS_STORAGE_IDE,4,2      ## @PCI_CLASS_STORAGE_IDE
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"PCI INT %c: no GSI"

L_.str.2:                               ## @.str.2
	.asciz	" - using IRQ %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"\n"

L_.str.4:                               ## @.str.4
	.asciz	"PCI INT %c: failed to register GSI\n"

L_.str.5:                               ## @.str.5
	.asciz	" -> Link[%s]"

L_.str.6:                               ## @.str.6
	.asciz	"PCI INT %c%s -> GSI %u (%s, %s) -> IRQ %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"level"

L_.str.8:                               ## @.str.8
	.asciz	"edge"

L_.str.9:                               ## @.str.9
	.asciz	"low"

L_.str.10:                              ## @.str.10
	.asciz	"high"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_pci_irq_enable            ; -- Begin function acpi_pci_irq_enable
	.p2align	2
_acpi_pci_irq_enable:                   ; @acpi_pci_irq_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x25, _ACPI_LEVEL_SENSITIVE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ACPI_LEVEL_SENSITIVE@GOTPAGEOFF]
	ldr	w8, [x25]
	str	w8, [sp, #20]
Lloh5:
	adrp	x24, _ACPI_ACTIVE_LOW@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ACPI_ACTIVE_LOW@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [sp, #16]
	str	xzr, [sp, #8]
	ldr	w20, [x0, #12]
	cbz	w20, LBB0_8
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_acpi_pci_irq_lookup
	cbz	x0, LBB0_9
; %bb.2:
	mov	x8, x0
	ldr	x0, [x0, #8]
	ldr	w21, [x8]
	cbz	x0, LBB0_4
; %bb.3:
	add	x2, sp, #20
	add	x3, sp, #16
	add	x4, sp, #8
	mov	x1, x21
	bl	_acpi_pci_link_allocate_irq
	mov	x21, x0
LBB0_4:
	tbnz	w21, #31, LBB0_10
; %bb.5:
	add	x22, x19, #8
	ldp	w3, w2, [sp, #16]
	mov	x0, x22
	mov	x1, x21
	bl	_acpi_register_gsi
	mov	x23, x0
	tbnz	w0, #31, LBB0_13
; %bb.6:
	str	w23, [x19, #4]
	ldr	x3, [sp, #8]
	cbz	x3, LBB0_14
; %bb.7:
Lloh7:
	adrp	x2, l_.str.5@PAGE
Lloh8:
	add	x2, x2, l_.str.5@PAGEOFF
	add	x0, sp, #24
	mov	w1, #16
	bl	_snprintf
	b	LBB0_15
LBB0_8:
	mov	x0, x19
	bl	_pci_name
	bl	_ACPI_DEBUG_PRINT
	b	LBB0_16
LBB0_9:
Lloh9:
	adrp	x8, _PCI_CLASS_STORAGE_IDE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_CLASS_STORAGE_IDE@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh11:
	ldr	w8, [x8]
	mov	w10, #5
	and	w10, w9, w10
	cmp	w8, w9, asr #8
	ccmp	w10, #0, #0, eq
	b.eq	LBB0_16
LBB0_10:
	add	x21, x19, #8
	mov	x0, x20
	bl	_pin_name
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_warn
	ldr	w8, [x19, #4]
	sub	w9, w8, #1
	cmp	w9, #14
	b.hi	LBB0_12
; %bb.11:
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printk
	ldr	w1, [x19, #4]
	ldr	w2, [x25]
	ldr	w3, [x24]
	mov	x0, x21
	bl	_acpi_register_gsi
	b	LBB0_16
LBB0_12:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printk
	b	LBB0_16
LBB0_13:
	mov	x0, x20
	bl	_pin_name
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_dev_warn
	b	LBB0_17
LBB0_14:
	strb	wzr, [sp, #24]
LBB0_15:
	mov	x0, x20
	bl	_pin_name
	mov	x2, x0
	ldr	w8, [sp, #20]
Lloh20:
	adrp	x9, l_.str.8@PAGE
Lloh21:
	add	x9, x9, l_.str.8@PAGEOFF
Lloh22:
	adrp	x10, l_.str.7@PAGE
Lloh23:
	add	x10, x10, l_.str.7@PAGEOFF
	ldr	w11, [x25]
	cmp	w8, w11
	csel	x5, x10, x9, eq
	ldr	w8, [sp, #16]
Lloh24:
	adrp	x9, l_.str.10@PAGE
Lloh25:
	add	x9, x9, l_.str.10@PAGEOFF
	ldr	w10, [x24]
Lloh26:
	adrp	x11, l_.str.9@PAGE
Lloh27:
	add	x11, x11, l_.str.9@PAGEOFF
	cmp	w8, w10
	csel	x6, x11, x9, eq
	ldr	w7, [x19, #4]
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x3, sp, #24
	mov	x0, x22
	mov	x4, x21
	bl	_dev_info
LBB0_16:
	mov	w23, #0
LBB0_17:
	ldr	x8, [sp, #40]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_LEVEL_SENSITIVE,4,2       ; @ACPI_LEVEL_SENSITIVE
	.comm	_ACPI_ACTIVE_LOW,4,2            ; @ACPI_ACTIVE_LOW
	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
	.comm	_PCI_CLASS_STORAGE_IDE,4,2      ; @PCI_CLASS_STORAGE_IDE
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"PCI INT %c: no GSI"

l_.str.2:                               ; @.str.2
	.asciz	" - using IRQ %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"\n"

l_.str.4:                               ; @.str.4
	.asciz	"PCI INT %c: failed to register GSI\n"

l_.str.5:                               ; @.str.5
	.asciz	" -> Link[%s]"

l_.str.6:                               ; @.str.6
	.asciz	"PCI INT %c%s -> GSI %u (%s, %s) -> IRQ %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"level"

l_.str.8:                               ; @.str.8
	.asciz	"edge"

l_.str.9:                               ; @.str.9
	.asciz	"low"

l_.str.10:                              ; @.str.10
	.asciz	"high"

.subsections_via_symbols
