	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_register_dev
_bnxt_register_dev:                     ## @bnxt_register_dev
	.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	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movq	_BNXT_MAX_ULP@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jle	LBB0_4
## %bb.1:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %r15
	movslq	%r12d, %rax
	leaq	(%rax,%rax,2), %r13
	movl	(%r15,%r13,8), %edi
	callq	_rcu_access_pointer
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_netdev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_BNXT_ROCE_ULP@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_11
## %bb.8:
	movq	%r14, %rdi
	callq	_bnxt_get_max_func_stat_ctxs
	movq	_BNXT_MIN_ROCE_STAT_CTXS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jbe	LBB0_10
## %bb.9:
	cmpl	%eax, (%r14)
	jne	LBB0_11
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_11:
	leaq	(%r15,%r13,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r13,8), %rdi
	addq	$16, %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_atomic_set
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r15,%r13,8)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_rcu_assign_pointer
	movq	_BNXT_ROCE_ULP@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_6
## %bb.12:
	movq	_BNXT_STATE_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$4, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.13:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bnxt_hwrm_vnic_cfg
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_MAX_ULP,4,2               ## @BNXT_MAX_ULP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ulp id %d already registered\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_BNXT_ROCE_ULP,4,2              ## @BNXT_ROCE_ULP
	.comm	_BNXT_MIN_ROCE_STAT_CTXS,4,2    ## @BNXT_MIN_ROCE_STAT_CTXS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BNXT_STATE_OPEN,4,2            ## @BNXT_STATE_OPEN
	.no_dead_strip	_bnxt_register_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_register_dev
_bnxt_register_dev:                     ; @bnxt_register_dev
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x0, [x0, #8]
	bl	_netdev_priv
	mov	x19, x0
	bl	_ASSERT_RTNL
Lloh0:
	adrp	x8, _BNXT_MAX_ULP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_MAX_ULP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.le	LBB0_3
; %bb.1:
	ldr	x25, [x23]
	mov	w8, #24
	smaddl	x23, w20, w8, x25
	ldr	w0, [x23]
	bl	_rcu_access_pointer
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_netdev_err
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh9:
	adrp	x24, _BNXT_ROCE_ULP@GOTPAGE
Lloh10:
	ldr	x24, [x24, _BNXT_ROCE_ULP@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w20
	b.ne	LBB0_10
; %bb.7:
	mov	x0, x19
	bl	_bnxt_get_max_func_stat_ctxs
Lloh11:
	adrp	x8, _BNXT_MIN_ROCE_STAT_CTXS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BNXT_MIN_ROCE_STAT_CTXS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ls	LBB0_9
; %bb.8:
	ldr	w8, [x19]
	cmp	w8, w0
	b.ne	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
LBB0_10:
	sxtw	x8, w20
	mov	w9, #24
	madd	x25, x8, x9, x25
	add	x0, x25, #16
	mov	w1, #0
	bl	_atomic_set
	str	x22, [x25, #8]
	ldr	w0, [x23]
	mov	x1, x21
	bl	_rcu_assign_pointer
	mov	w0, #0
	ldr	w8, [x24]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.11:
Lloh16:
	adrp	x8, _BNXT_STATE_OPEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BNXT_STATE_OPEN@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.12:
	mov	x0, x19
	mov	w1, #0
	bl	_bnxt_hwrm_vnic_cfg
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_MAX_ULP,4,2               ; @BNXT_MAX_ULP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ulp id %d already registered\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_BNXT_ROCE_ULP,4,2              ; @BNXT_ROCE_ULP
	.comm	_BNXT_MIN_ROCE_STAT_CTXS,4,2    ; @BNXT_MIN_ROCE_STAT_CTXS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BNXT_STATE_OPEN,4,2            ; @BNXT_STATE_OPEN
	.no_dead_strip	_bnxt_register_dev
.subsections_via_symbols
