	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_re_request_msix
_bnxt_re_request_msix:                  ## @bnxt_re_request_msix
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	_u32@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_BNXT_RE_MAX_MSIX@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_num_online_cpus
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_min_t
	movl	%eax, %r15d
	movq	(%r12), %rax
	movq	_BNXT_ROCE_ULP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%r14), %edx
	movq	%r12, %rdi
	movl	%r15d, %ecx
	callq	*(%rax)
	movl	%eax, %r12d
	movq	_BNXT_RE_MIN_MSIX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	cmpl	%r15d, %r12d
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_rdev_to_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_dev_warn
LBB0_6:
	movl	%r12d, (%r14)
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_RE_MAX_MSIX,4,2           ## @BNXT_RE_MAX_MSIX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_u32,4,2                        ## @u32
	.comm	_BNXT_ROCE_ULP,4,2              ## @BNXT_ROCE_ULP
	.comm	_BNXT_RE_MIN_MSIX,4,2           ## @BNXT_RE_MIN_MSIX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Requested %d MSI-X vectors, got %d\n"

	.no_dead_strip	_bnxt_re_request_msix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_re_request_msix
_bnxt_re_request_msix:                  ; @bnxt_re_request_msix
	.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
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _u32@GOTPAGE
Lloh1:
	ldr	x8, [x8, _u32@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _BNXT_RE_MAX_MSIX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNXT_RE_MAX_MSIX@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	bl	_num_online_cpus
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_min_t
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _BNXT_ROCE_ULP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BNXT_ROCE_ULP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	ldr	w2, [x19, #4]
	mov	x0, x21
	mov	x3, x20
	blr	x8
Lloh9:
	adrp	x8, _BNXT_RE_MIN_MSIX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BNXT_RE_MIN_MSIX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_3:
	mov	x21, x0
	cmp	w0, w20
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_rdev_to_dev
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_dev_warn
LBB0_5:
	mov	w0, #0
	str	w21, [x19]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_RE_MAX_MSIX,4,2           ; @BNXT_RE_MAX_MSIX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_u32,4,2                        ; @u32
	.comm	_BNXT_ROCE_ULP,4,2              ; @BNXT_ROCE_ULP
	.comm	_BNXT_RE_MIN_MSIX,4,2           ; @BNXT_RE_MIN_MSIX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Requested %d MSI-X vectors, got %d\n"

	.no_dead_strip	_bnxt_re_request_msix
.subsections_via_symbols
