	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_setup_irqs
_bnx2x_setup_irqs:                      ## @bnx2x_setup_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %eax
	movq	_USING_MSIX_FLAG@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.1:
	movq	_USING_SINGLE_MSIX_FLAG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_bnx2x_req_irq
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_BNX2X_ERR
	jmp	LBB0_10
LBB0_5:
	movl	(%r14), %eax
	movq	_USING_MSI_FLAG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	8(%r14), %rdi
	movq	24(%r14), %rax
	movl	(%rax), %edx
	movl	%edx, (%rdi)
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_info
	movl	(%r14), %eax
LBB0_7:
	testl	%eax, (%r15)
	je	LBB0_9
## %bb.8:
	movq	8(%r14), %rdi
	movq	16(%r14), %rax
	movl	(%rax), %edx
	movl	%edx, (%rdi)
	leaq	L_.str.2(%rip), %rsi
	callq	_netdev_info
	jmp	LBB0_9
LBB0_2:
	movq	%r14, %rdi
	callq	_bnx2x_req_msix_irqs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USING_MSIX_FLAG,4,2            ## @USING_MSIX_FLAG
	.comm	_USING_SINGLE_MSIX_FLAG,4,2     ## @USING_SINGLE_MSIX_FLAG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IRQ request failed  rc %d, aborting\n"

	.comm	_USING_MSI_FLAG,4,2             ## @USING_MSI_FLAG
L_.str.1:                               ## @.str.1
	.asciz	"using MSI IRQ %d\n"

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

	.no_dead_strip	_bnx2x_setup_irqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_setup_irqs
_bnx2x_setup_irqs:                      ; @bnx2x_setup_irqs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _USING_MSIX_FLAG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _USING_MSIX_FLAG@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x9, _USING_SINGLE_MSIX_FLAG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _USING_SINGLE_MSIX_FLAG@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_2:
	mov	x0, x19
	bl	_bnx2x_req_irq
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_BNX2X_ERR
	b	LBB0_10
LBB0_4:
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _USING_MSI_FLAG@GOTPAGE
Lloh8:
	ldr	x9, [x9, _USING_MSI_FLAG@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x19, #24]
	ldr	w2, [x8]
	ldr	x0, [x19, #8]
	str	w2, [x0]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_info
	ldr	w8, [x19]
LBB0_6:
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
	ldp	x0, x8, [x19, #8]
	ldr	w2, [x8]
	str	w2, [x0]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_info
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_bnx2x_req_msix_irqs
	mov	x20, x0
	cbnz	w0, LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_USING_MSIX_FLAG,4,2            ; @USING_MSIX_FLAG
	.comm	_USING_SINGLE_MSIX_FLAG,4,2     ; @USING_SINGLE_MSIX_FLAG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IRQ request failed  rc %d, aborting\n"

	.comm	_USING_MSI_FLAG,4,2             ; @USING_MSI_FLAG
l_.str.1:                               ; @.str.1
	.asciz	"using MSI IRQ %d\n"

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

	.no_dead_strip	_bnx2x_setup_irqs
.subsections_via_symbols
