	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_request_irq
_bnxt_request_irq:                      ## @bnxt_request_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_bnxt_setup_int_mode
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_err
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_BNXT_FLAG_USING_MSIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, (%r15)
	jne	LBB0_3
## %bb.4:
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%r15)
	jle	LBB0_14
## %bb.6:
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	movslq	4(%r15), %rax
	cmpq	%rax, %r12
	jge	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_bnxt_cp_num_to_irq_num
	movq	24(%r15), %rdx
	movq	32(%r15), %r13
	cltq
	leaq	(%rax,%rax,2), %r14
	movl	20(%r13,%r14,8), %esi
	movl	(%r13,%r14,8), %edi
	movl	16(%r13,%r14,8), %ecx
	movq	(%rdx,%r12,8), %r8
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_request_irq
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, 4(%r13,%r14,8)
	leaq	12(,%r14,8), %rbx
	addq	%r13, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_zalloc_cpumask_var
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	(,%r14,8), %rax
	addq	%r13, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rdi
	callq	_dev_to_node
	movl	$1, 8(%r13,%r14,8)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_cpumask_local_spread
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_cpumask_set_cpu
	movl	(%r14), %edi
	movl	(%rbx), %esi
	callq	_irq_set_affinity_hint
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_warn
	jmp	LBB0_14
LBB0_8:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bnxt_setup_int_mode err: %x\n"

	.comm	_BNXT_FLAG_USING_MSIX,4,2       ## @BNXT_FLAG_USING_MSIX
	.comm	_IRQF_SHARED,8,3                ## @IRQF_SHARED
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Set affinity failed, IRQ = %d\n"

	.no_dead_strip	_bnxt_request_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_request_irq
_bnxt_request_irq:                      ; @bnxt_request_irq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_bnxt_setup_int_mode
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_netdev_err
	b	LBB0_11
LBB0_2:
Lloh2:
	adrp	x8, _BNXT_FLAG_USING_MSIX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BNXT_FLAG_USING_MSIX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldp	w10, w11, [x19]
	tst	w8, w10
	csel	x20, x9, xzr, eq
	cmp	w11, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x21, #0
	mov	w24, #24
	mov	w25, #1
Lloh8:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	cmp	x21, x8
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_bnxt_cp_num_to_irq_num
	mov	x23, x0
	ldp	x8, x28, [x19, #24]
	smaddl	x27, w0, w24, x28
	ldr	w0, [x27]
	ldp	w3, w1, [x27, #16]
	ldr	x4, [x8, x21, lsl #3]
	mov	x2, x20
	bl	_request_irq
	cbnz	w0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x23, w23
	madd	x8, x23, x24, x28
	str	w25, [x8, #4]
	add	x22, x8, #12
	ldr	w1, [x26]
	mov	x0, x22
	bl	_zalloc_cpumask_var
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #16]
	bl	_dev_to_node
	mov	x1, x0
	madd	x8, x23, x24, x28
	str	w25, [x8, #8]
	mov	x0, x21
	bl	_cpumask_local_spread
	ldr	w1, [x22]
	bl	_cpumask_set_cpu
	ldr	w0, [x27]
	ldr	w1, [x22]
	bl	_irq_set_affinity_hint
	cbz	w0, LBB0_4
; %bb.8:
	mov	x22, x0
	ldr	x0, [x19, #8]
	ldr	w2, [x27]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_warn
	b	LBB0_11
LBB0_9:
	mov	w22, #0
	b	LBB0_11
LBB0_10:
	mov	x22, x0
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bnxt_setup_int_mode err: %x\n"

	.comm	_BNXT_FLAG_USING_MSIX,4,2       ; @BNXT_FLAG_USING_MSIX
	.comm	_IRQF_SHARED,8,3                ; @IRQF_SHARED
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Set affinity failed, IRQ = %d\n"

	.no_dead_strip	_bnxt_request_irq
.subsections_via_symbols
