	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_pci_probe
_bnad_pci_probe:                        ## @bnad_pci_probe
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_bnad_fwimg_mutex@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_cna_get_firmware_buf
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.1:
	movl	$96, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_bnad_lock_init
	movq	_bna_id@GOTPCREL(%rip), %rdi
	callq	_atomic_inc_return
	decq	%rax
	movq	%rax, 88(%r12)
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	$0, -52(%rbp)
	leaq	-52(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_bnad_pci_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_bnad_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movl	-52(%rbp), %esi
	movq	%r12, %rdi
	callq	_bnad_netdev_init
	movq	%r15, %rdi
	callq	_netif_carrier_off
	movq	_bna_debugfs_enable@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_bnad_debugfs_init
LBB0_6:
	leaq	16(%r12), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r12), %rdi
	callq	_bna_res_req
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%r12), %rsi
	movq	_BNA_RES_T_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_bnad_res_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	leaq	20(%r12), %rbx
	movq	80(%r12), %rax
	movl	4(%rax), %edi
	callq	_PCI_SLOT
	movl	%eax, -68(%rbp)
	movq	80(%r12), %rax
	movl	4(%rax), %edi
	callq	_PCI_FUNC
	movl	%eax, -72(%rbp)
	movq	80(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movl	72(%r12), %eax
	movl	%eax, -80(%rbp)
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r12), %rcx
	leaq	-80(%rbp), %rdx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_bna_init
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	leaq	40(%r12), %rax
	movq	%rax, 64(%r12)
	movq	%r12, %rdi
	callq	_bnad_enable_msix
	movq	%r12, %rdi
	callq	_bnad_mbox_irq_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_16
LBB0_8:
	movq	8(%r12), %rsi
	movq	_BNA_RES_T_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_bnad_res_free
LBB0_9:
	movl	4(%r12), %edi
	callq	_kfree
	movq	%r12, %rdi
	callq	_bnad_debugfs_uninit
	movq	%r12, %rdi
	callq	_bnad_uninit
LBB0_10:
	movq	%r14, %rdi
	callq	_bnad_pci_uninit
LBB0_11:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_bnad_lock_uninit
	movq	%r15, %rdi
	callq	_free_netdev
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_14:
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	28(%r12), %rdi
	movq	_bnad_ioc_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_bnad_ioc_hb_check@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_timer_setup
	leaq	32(%r12), %rdi
	movq	_bnad_iocpf_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	leaq	24(%r12), %rdi
	movq	_bnad_iocpf_sem_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_timer_setup
	movq	%r12, %rdi
	callq	_bnad_ioceth_enable
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_15
LBB0_18:
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	_BNAD_NUM_TXQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_bna_num_txq_set
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movq	_BNAD_NUM_RXP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_bna_num_rxp_set
	testq	%rax, %rax
	je	LBB0_24
LBB0_20:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_bna_attr
	movq	8(%rax), %rax
	decq	%rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_bna_attr
	movq	(%rax), %rdx
	decq	%rdx
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_bnad_q_num_adjust
	movq	_BNAD_NUM_TXQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_bna_num_txq_set
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movq	_BNAD_NUM_RXP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_bna_num_rxp_set
	testq	%rax, %rax
	je	LBB0_24
LBB0_22:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_25
## %bb.23:
	negl	%eax
	movl	%eax, %ebx
	jmp	LBB0_29
LBB0_24:
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
LBB0_25:
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	48(%r12), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_bna_mod_res_req
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	48(%r12), %rsi
	movq	_BNA_MOD_RES_T_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_bnad_res_alloc
	testl	%eax, %eax
	je	LBB0_27
## %bb.26:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_29
LBB0_27:
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	48(%r12), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_bna_mod_init
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	leaq	36(%r12), %rdi
	movl	60(%r12), %esi
	callq	_bna_enet_perm_mac_get
	movq	%r12, %rdi
	callq	_bnad_set_netdev_perm_addr
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_30
## %bb.28:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	48(%r12), %rsi
	movq	_BNA_MOD_RES_T_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_bnad_res_free
LBB0_29:
	movq	%r12, %rdi
	callq	_bnad_ioceth_disable
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_del_timer_sync
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_del_timer_sync
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_del_timer_sync
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_bna_uninit
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	callq	_bnad_mbox_irq_free
	movq	%r12, %rdi
	callq	_bnad_disable_msix
	jmp	LBB0_8
LBB0_30:
	movq	_BNAD_RF_NETDEV_REGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$56, %r12
	movq	%r12, %rsi
	callq	_set_bit
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_bnad_fwimg_mutex,4,2           ## @bnad_fwimg_mutex
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to load firmware image!\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bna_id,4,2                     ## @bna_id
	.comm	_bna_debugfs_enable,8,3         ## @bna_debugfs_enable
	.comm	_BNA_RES_T_MAX,4,2              ## @BNA_RES_T_MAX
	.comm	_bnad_ioc_timeout,4,2           ## @bnad_ioc_timeout
	.comm	_bnad_ioc_hb_check,4,2          ## @bnad_ioc_hb_check
	.comm	_bnad_iocpf_timeout,4,2         ## @bnad_iocpf_timeout
	.comm	_bnad_iocpf_sem_timeout,4,2     ## @bnad_iocpf_sem_timeout
L_.str.1:                               ## @.str.1
	.asciz	"initialization failed err=%d\n"

	.comm	_BNAD_NUM_TXQ,8,3               ## @BNAD_NUM_TXQ
	.comm	_BNAD_NUM_RXP,8,3               ## @BNAD_NUM_RXP
	.comm	_EIO,4,2                        ## @EIO
	.comm	_BNA_MOD_RES_T_MAX,4,2          ## @BNA_MOD_RES_T_MAX
L_.str.2:                               ## @.str.2
	.asciz	"registering net device failed\n"

	.comm	_BNAD_RF_NETDEV_REGISTERED,4,2  ## @BNAD_RF_NETDEV_REGISTERED
	.no_dead_strip	_bnad_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnad_pci_probe
_bnad_pci_probe:                        ; @bnad_pci_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x20, _bnad_fwimg_mutex@GOTPAGE
Lloh1:
	ldr	x20, [x20, _bnad_fwimg_mutex@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	bl	_cna_get_firmware_buf
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_unlock
	cbz	w21, LBB0_12
; %bb.1:
	mov	w0, #96
	bl	_alloc_etherdev
	cbz	x0, LBB0_13
; %bb.2:
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	bl	_bnad_lock_init
Lloh2:
	adrp	x0, _bna_id@GOTPAGE
Lloh3:
	ldr	x0, [x0, _bna_id@GOTPAGEOFF]
	bl	_atomic_inc_return
	sub	x8, x0, #1
	str	x8, [x20, #88]
	mov	x0, x20
	bl	_mutex_lock
	str	wzr, [sp, #28]
	add	x2, sp, #28
	mov	x0, x20
	mov	x1, x19
	bl	_bnad_pci_init
	mov	x26, x0
	cbnz	w0, LBB0_11
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_bnad_init
	mov	x26, x0
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w1, [sp, #28]
	mov	x0, x20
	bl	_bnad_netdev_init
	mov	x0, x21
	bl	_netif_carrier_off
Lloh4:
	adrp	x8, _bna_debugfs_enable@GOTPAGE
Lloh5:
	ldr	x8, [x8, _bna_debugfs_enable@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_bnad_debugfs_init
LBB0_6:
	add	x22, x20, #16
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x0, [x20, #8]
	bl	_bna_res_req
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x1, [x20, #8]
Lloh7:
	adrp	x27, _BNA_RES_T_MAX@GOTPAGE
Lloh8:
	ldr	x27, [x27, _BNA_RES_T_MAX@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x20
	bl	_bnad_res_alloc
	mov	x26, x0
	cbnz	w0, LBB0_9
; %bb.7:
	add	x23, x20, #20
	ldr	x8, [x20, #80]
	ldr	w0, [x8, #4]
	bl	_PCI_SLOT
	str	w0, [sp, #20]
	ldr	x8, [x20, #80]
	ldr	w0, [x8, #4]
	bl	_PCI_FUNC
	str	w0, [sp, #16]
	ldr	x8, [x20, #80]
	ldr	w8, [x8]
	ldr	w9, [x20, #72]
	stp	w9, w8, [sp, #8]
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x3, [x20, #8]
	add	x2, sp, #8
	mov	x0, x23
	mov	x1, x20
	bl	_bna_init
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	add	x8, x20, #40
	str	x8, [x20, #64]
	mov	x0, x20
	bl	_bnad_enable_msix
	mov	x0, x20
	bl	_bnad_mbox_irq_alloc
	mov	x26, x0
	cbz	w0, LBB0_16
LBB0_8:
	ldr	x1, [x20, #8]
	ldr	w2, [x27]
	mov	x0, x20
	bl	_bnad_res_free
LBB0_9:
	ldr	w0, [x20, #4]
	bl	_kfree
	mov	x0, x20
	bl	_bnad_debugfs_uninit
	mov	x0, x20
	bl	_bnad_uninit
LBB0_10:
	mov	x0, x19
	bl	_bnad_pci_uninit
LBB0_11:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x20
	bl	_bnad_lock_uninit
	mov	x0, x21
	bl	_free_netdev
	b	LBB0_15
LBB0_12:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_15:
	mov	x0, x26
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
	add	x24, x20, #28
Lloh15:
	adrp	x8, _bnad_ioc_timeout@GOTPAGE
Lloh16:
	ldr	x8, [x8, _bnad_ioc_timeout@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x24
	mov	w2, #0
	bl	_timer_setup
Lloh18:
	adrp	x8, _bnad_ioc_hb_check@GOTPAGE
Lloh19:
	ldr	x8, [x8, _bnad_ioc_hb_check@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x23
	mov	w2, #0
	bl	_timer_setup
	add	x0, x20, #32
Lloh21:
	adrp	x8, _bnad_iocpf_timeout@GOTPAGE
Lloh22:
	ldr	x8, [x8, _bnad_iocpf_timeout@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	add	x25, x20, #24
Lloh24:
	adrp	x8, _bnad_iocpf_sem_timeout@GOTPAGE
Lloh25:
	ldr	x8, [x8, _bnad_iocpf_sem_timeout@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x25
	mov	w2, #0
	bl	_timer_setup
	mov	x0, x20
	bl	_bnad_ioceth_enable
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_18
; %bb.17:
	str	x0, [sp]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_mutex_unlock
	mov	w26, #0
	b	LBB0_15
LBB0_18:
	mov	x0, x22
	bl	_spin_lock_irqsave
Lloh29:
	adrp	x28, _BNAD_NUM_TXQ@GOTPAGE
Lloh30:
	ldr	x28, [x28, _BNAD_NUM_TXQ@GOTPAGEOFF]
	ldr	x8, [x28]
	add	x1, x8, #1
	mov	x0, x23
	bl	_bna_num_txq_set
	cbnz	x0, LBB0_20
; %bb.19:
Lloh31:
	adrp	x8, _BNAD_NUM_RXP@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BNAD_NUM_RXP@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	add	x1, x8, #1
	mov	x0, x23
	bl	_bna_num_rxp_set
	cbz	x0, LBB0_24
LBB0_20:
	mov	x0, x23
	bl	_bna_attr
	ldr	x8, [x0, #8]
	sub	x26, x8, #1
	mov	x0, x23
	bl	_bna_attr
	ldr	x8, [x0]
	sub	x2, x8, #1
	mov	x0, x20
	mov	x1, x26
	bl	_bnad_q_num_adjust
	ldr	x8, [x28]
	add	x1, x8, #1
	mov	x0, x23
	bl	_bna_num_txq_set
	cbnz	x0, LBB0_22
; %bb.21:
Lloh34:
	adrp	x8, _BNAD_NUM_RXP@GOTPAGE
Lloh35:
	ldr	x8, [x8, _BNAD_NUM_RXP@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	add	x1, x8, #1
	mov	x0, x23
	bl	_bna_num_rxp_set
	cbz	x0, LBB0_24
LBB0_22:
Lloh37:
	adrp	x28, _EIO@GOTPAGE
Lloh38:
	ldr	x28, [x28, _EIO@GOTPAGEOFF]
	ldr	w26, [x28]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	cbz	w26, LBB0_25
; %bb.23:
	neg	w26, w26
	b	LBB0_29
LBB0_24:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh39:
	adrp	x28, _EIO@GOTPAGE
Lloh40:
	ldr	x28, [x28, _EIO@GOTPAGEOFF]
LBB0_25:
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x1, [x20, #48]
	mov	x0, x23
	bl	_bna_mod_res_req
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x1, [x20, #48]
Lloh41:
	adrp	x26, _BNA_MOD_RES_T_MAX@GOTPAGE
Lloh42:
	ldr	x26, [x26, _BNA_MOD_RES_T_MAX@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, x20
	bl	_bnad_res_alloc
	cbz	w0, LBB0_27
; %bb.26:
	ldr	w8, [x28]
	neg	w26, w8
	b	LBB0_29
LBB0_27:
	mov	x28, x26
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x1, [x20, #48]
	mov	x0, x23
	bl	_bna_mod_init
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x22
	bl	_spin_lock_irqsave
	add	x0, x20, #36
	ldr	w1, [x20, #60]
	bl	_bna_enet_perm_mac_get
	mov	x0, x20
	bl	_bnad_set_netdev_perm_addr
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x21
	bl	_register_netdev
	mov	x26, x0
	cbz	w0, LBB0_30
; %bb.28:
Lloh43:
	adrp	x1, l_.str.2@PAGE
Lloh44:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_mutex_lock
	ldr	x1, [x20, #48]
	ldr	w2, [x28]
	mov	x0, x20
	bl	_bnad_res_free
LBB0_29:
	mov	x0, x20
	bl	_bnad_ioceth_disable
	mov	x0, x24
	bl	_del_timer_sync
	mov	x0, x25
	bl	_del_timer_sync
	mov	x0, x23
	bl	_del_timer_sync
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x23
	bl	_bna_uninit
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_bnad_mbox_irq_free
	mov	x0, x20
	bl	_bnad_disable_msix
	b	LBB0_8
LBB0_30:
Lloh45:
	adrp	x8, _BNAD_RF_NETDEV_REGISTERED@GOTPAGE
Lloh46:
	ldr	x8, [x8, _BNAD_RF_NETDEV_REGISTERED@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	add	x1, x20, #56
	bl	_set_bit
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_bnad_fwimg_mutex,4,2           ; @bnad_fwimg_mutex
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to load firmware image!\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bna_id,4,2                     ; @bna_id
	.comm	_bna_debugfs_enable,8,3         ; @bna_debugfs_enable
	.comm	_BNA_RES_T_MAX,4,2              ; @BNA_RES_T_MAX
	.comm	_bnad_ioc_timeout,4,2           ; @bnad_ioc_timeout
	.comm	_bnad_ioc_hb_check,4,2          ; @bnad_ioc_hb_check
	.comm	_bnad_iocpf_timeout,4,2         ; @bnad_iocpf_timeout
	.comm	_bnad_iocpf_sem_timeout,4,2     ; @bnad_iocpf_sem_timeout
l_.str.1:                               ; @.str.1
	.asciz	"initialization failed err=%d\n"

	.comm	_BNAD_NUM_TXQ,8,3               ; @BNAD_NUM_TXQ
	.comm	_BNAD_NUM_RXP,8,3               ; @BNAD_NUM_RXP
	.comm	_EIO,4,2                        ; @EIO
	.comm	_BNA_MOD_RES_T_MAX,4,2          ; @BNA_MOD_RES_T_MAX
l_.str.2:                               ; @.str.2
	.asciz	"registering net device failed\n"

	.comm	_BNAD_RF_NETDEV_REGISTERED,4,2  ; @BNAD_RF_NETDEV_REGISTERED
	.no_dead_strip	_bnad_pci_probe
.subsections_via_symbols
