	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_config_irqs
_xgbe_config_irqs:                      ## @xgbe_config_irqs
	.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, %r12
	callq	_xgbe_config_multi_msi
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	64(%r12), %rdi
	movq	_PCI_IRQ_LEGACY@GOTPCREL(%rip), %rax
	movq	_PCI_IRQ_MSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	$1, %esi
	movl	$1, %edx
	callq	_pci_alloc_irq_vectors
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	64(%r12), %rdi
	xorl	%eax, %eax
	cmpq	$0, (%rdi)
	setne	%al
	movl	%eax, (%r12)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 4(%r12)
	xorl	%esi, %esi
	callq	_pci_irq_vector
	movq	%rax, 56(%r12)
	movq	64(%r12), %rdi
	xorl	%esi, %esi
	callq	_pci_irq_vector
	movq	%rax, 48(%r12)
	movq	64(%r12), %rdi
	xorl	%esi, %esi
	callq	_pci_irq_vector
	movq	%rax, 40(%r12)
	movq	64(%r12), %rdi
	xorl	%esi, %esi
	callq	_pci_irq_vector
	movq	%rax, 32(%r12)
	movq	%r12, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	24(%r12), %edi
	movq	64(%r12), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_5:
	movq	%r12, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	24(%r12), %edi
	movq	56(%r12), %rdx
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	24(%r12), %edi
	movq	48(%r12), %rdx
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	24(%r12), %edi
	movq	40(%r12), %rdx
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	24(%r12), %edi
	movq	32(%r12), %rdx
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$0, 8(%r12)
	je	LBB0_10
## %bb.8:
	xorl	%r14d, %r14d
	leaq	L_.str.8(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%r12), %edi
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	%r15, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	incq	%rbx
	movl	8(%r12), %eax
	cmpq	%rax, %rbx
	jb	LBB0_9
	jmp	LBB0_10
LBB0_6:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_2:
	movl	%eax, %r14d
	movl	24(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_IRQ_LEGACY,4,2             ## @PCI_IRQ_LEGACY
	.comm	_PCI_IRQ_MSI,4,2                ## @PCI_IRQ_MSI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"single IRQ enablement failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"single %s interrupt enabled\n"

L_.str.2:                               ## @.str.2
	.asciz	"MSI"

L_.str.3:                               ## @.str.3
	.asciz	"legacy"

L_.str.4:                               ## @.str.4
	.asciz	" dev irq=%d\n"

L_.str.5:                               ## @.str.5
	.asciz	" ecc irq=%d\n"

L_.str.6:                               ## @.str.6
	.asciz	" i2c irq=%d\n"

L_.str.7:                               ## @.str.7
	.asciz	"  an irq=%d\n"

L_.str.8:                               ## @.str.8
	.asciz	" dma%u irq=%d\n"

	.no_dead_strip	_xgbe_config_irqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_config_irqs
_xgbe_config_irqs:                      ; @xgbe_config_irqs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_xgbe_config_multi_msi
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _PCI_IRQ_LEGACY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_IRQ_LEGACY@GOTPAGEOFF]
	ldr	x0, [x19, #64]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PCI_IRQ_MSI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_IRQ_MSI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w1, #1
	mov	w2, #1
	bl	_pci_alloc_irq_vectors
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldr	x0, [x19, #64]
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w8, ne
	str	w8, [x19]
	movi.2s	v0, #1
	stur	d0, [x19, #4]
	mov	w1, #0
	bl	_pci_irq_vector
	str	x0, [x19, #56]
	ldr	x0, [x19, #64]
	mov	w1, #0
	bl	_pci_irq_vector
	str	x0, [x19, #48]
	ldr	x0, [x19, #64]
	mov	w1, #0
	bl	_pci_irq_vector
	str	x0, [x19, #40]
	ldr	x0, [x19, #64]
	mov	w1, #0
	bl	_pci_irq_vector
	str	x0, [x19, #32]
	mov	x0, x19
	bl	_netif_msg_probe
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #24]
	ldr	x8, [x19, #64]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh8:
	adrp	x10, l_.str.3@PAGE
Lloh9:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
LBB0_4:
	mov	x0, x19
	bl	_netif_msg_probe
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w0, [x19, #24]
	ldr	x8, [x19, #56]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x19, #24]
	ldr	x8, [x19, #48]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x19, #24]
	ldr	x8, [x19, #40]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x19, #24]
	ldr	x8, [x19, #32]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.7@PAGE
Lloh19:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_8
; %bb.6:
	mov	x21, #0
Lloh20:
	adrp	x20, l_.str.8@PAGE
Lloh21:
	add	x20, x20, l_.str.8@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #24]
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x21, lsl #2]
	stp	x21, x8, [sp]
	mov	x1, x20
	bl	_dev_dbg
	add	x21, x21, #1
	ldr	w8, [x19, #8]
	cmp	x21, x8
	b.lo	LBB0_7
LBB0_8:
	mov	w20, #0
	b	LBB0_10
LBB0_9:
	mov	x20, x0
	ldr	w0, [x19, #24]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_10:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_IRQ_LEGACY,4,2             ; @PCI_IRQ_LEGACY
	.comm	_PCI_IRQ_MSI,4,2                ; @PCI_IRQ_MSI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"single IRQ enablement failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"single %s interrupt enabled\n"

l_.str.2:                               ; @.str.2
	.asciz	"MSI"

l_.str.3:                               ; @.str.3
	.asciz	"legacy"

l_.str.4:                               ; @.str.4
	.asciz	" dev irq=%d\n"

l_.str.5:                               ; @.str.5
	.asciz	" ecc irq=%d\n"

l_.str.6:                               ; @.str.6
	.asciz	" i2c irq=%d\n"

l_.str.7:                               ; @.str.7
	.asciz	"  an irq=%d\n"

l_.str.8:                               ; @.str.8
	.asciz	" dma%u irq=%d\n"

	.no_dead_strip	_xgbe_config_irqs
.subsections_via_symbols
