	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_unregister_dev
_bnxt_unregister_dev:                   ## @bnxt_unregister_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	16(%rdi), %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movq	_BNXT_MAX_ULP@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jle	LBB0_11
## %bb.1:
	movq	%rbx, %r13
	movq	8(%r12), %rbx
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %r14
	movl	24(%rbx,%r14,8), %edi
	callq	_rcu_access_pointer
	testl	%eax, %eax
	je	LBB0_12
## %bb.2:
	movq	_BNXT_ROCE_ULP@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_5
## %bb.3:
	cmpq	$0, 32(%rbx,%r14,8)
	je	LBB0_5
## %bb.4:
	movq	(%r12), %rax
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	*(%rax)
LBB0_5:
	leaq	(%rbx,%r14,8), %r15
	addq	$24, %r15
	movq	%rbx, %r12
	cmpq	$0, 16(%rbx,%r14,8)
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_bnxt_hwrm_func_rgtr_async_events
LBB0_7:
	movl	(%r15), %edi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_RCU_INIT_POINTER
	xorl	%eax, %eax
	callq	_synchronize_rcu
	leaq	(%r12,%r14,8), %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12,%r14,8)
	movq	%r15, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	$100, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	leal	1(%rbx), %eax
	cmpl	$9, %ebx
	movl	%eax, %ebx
	jb	LBB0_9
	jmp	LBB0_14
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
LBB0_13:
	subl	(%rax), %r13d
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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 not registered\n"

	.comm	_BNXT_ROCE_ULP,4,2              ## @BNXT_ROCE_ULP
	.no_dead_strip	_bnxt_unregister_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_unregister_dev
_bnxt_unregister_dev:                   ; @bnxt_unregister_dev
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x0, #16]
	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_12
; %bb.1:
	ldr	x22, [x21, #8]
	mov	w8, #40
	smaddl	x24, w20, w8, x22
	ldr	w0, [x24, #24]!
	bl	_rcu_access_pointer
	cbz	w0, LBB0_11
; %bb.2:
	sxtw	x23, w20
Lloh3:
	adrp	x8, _BNXT_ROCE_ULP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNXT_ROCE_ULP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.3:
	mov	w8, #40
	madd	x8, x23, x8, x22
	ldr	x8, [x8, #32]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x21
	mov	x1, x20
	blr	x8
LBB0_5:
	mov	w8, #40
	madd	x8, x23, x8, x22
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_bnxt_hwrm_func_rgtr_async_events
LBB0_7:
	ldr	w0, [x24]
	mov	x1, #0
	bl	_RCU_INIT_POINTER
	bl	_synchronize_rcu
	mov	w8, #40
	madd	x19, x23, x8, x22
	stp	xzr, xzr, [x19, #8]
	mov	x0, x19
	bl	_atomic_read
	cbz	x0, LBB0_13
; %bb.8:
	mov	w20, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #100
	bl	_msleep
	mov	x0, x19
	bl	_atomic_read
	mov	x8, x0
	mov	w0, #0
	cbz	x8, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w8, w20, #1
	cmp	w20, #9
	mov	x20, x8
	b.lo	LBB0_9
	b	LBB0_13
LBB0_11:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_netdev_err
LBB0_12:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.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 not registered\n"

	.comm	_BNXT_ROCE_ULP,4,2              ; @BNXT_ROCE_ULP
	.no_dead_strip	_bnxt_unregister_dev
.subsections_via_symbols
