	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_init
_bnad_init:                             ## @bnad_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	callq	_SET_NETDEV_DEV
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	movq	%r15, 88(%rbx)
	movq	%r14, 80(%rbx)
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	movl	%eax, 72(%rbx)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_len
	movq	%rax, 64(%rbx)
	movl	72(%rbx), %edi
	movq	%rax, %rsi
	callq	_ioremap_nocache
	movl	%eax, 20(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	64(%rbx), %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_info
	leaq	56(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_bnad_msix_disable@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.4:
	movq	_BNAD_CF_MSIX@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	leaq	60(%rbx), %rax
LBB0_5:
	movl	(%rax), %eax
	movq	_BNAD_CF_DIM_ENABLED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 60(%rbx)
	movq	%rbx, %rdi
	callq	_bnad_q_num_init
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	4(%rbx), %eax
	movl	12(%rbx), %ecx
	imull	(%rbx), %eax
	imull	8(%rbx), %ecx
	addl	%eax, %ecx
	movslq	%ecx, %rax
	movq	_BNAD_MAILBOX_MSIX_VECTORS@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, 48(%rbx)
	movq	_BNAD_TXQ_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_BNAD_RXQ_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_BFI_TX_COALESCING_TIMEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_BFI_RX_COALESCING_TIMEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	28(%rbx), %edi
	movq	_BNAD_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	16(%rbx), %ecx
	leaq	L_.str.2(%rip), %rsi
	callq	_sprintf
	movl	28(%rbx), %edi
	callq	_create_singlethread_workqueue
	movl	%eax, 24(%rbx)
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movl	20(%rbx), %edi
	callq	_iounmap
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
LBB0_7:
	subl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioremap for bar0 failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"bar0 mapped to %p, len %llu\n"

	.comm	_bnad_msix_disable,4,2          ## @bnad_msix_disable
	.comm	_BNAD_CF_MSIX,4,2               ## @BNAD_CF_MSIX
	.comm	_BNAD_CF_DIM_ENABLED,4,2        ## @BNAD_CF_DIM_ENABLED
	.comm	_BNAD_MAILBOX_MSIX_VECTORS,8,3  ## @BNAD_MAILBOX_MSIX_VECTORS
	.comm	_BNAD_TXQ_DEPTH,4,2             ## @BNAD_TXQ_DEPTH
	.comm	_BNAD_RXQ_DEPTH,4,2             ## @BNAD_RXQ_DEPTH
	.comm	_BFI_TX_COALESCING_TIMEO,4,2    ## @BFI_TX_COALESCING_TIMEO
	.comm	_BFI_RX_COALESCING_TIMEO,4,2    ## @BFI_RX_COALESCING_TIMEO
L_.str.2:                               ## @.str.2
	.asciz	"%s_wq_%d"

	.comm	_BNAD_NAME,8,3                  ## @BNAD_NAME
	.no_dead_strip	_bnad_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnad_init
_bnad_init:                             ; @bnad_init
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x2
	bl	_SET_NETDEV_DEV
	mov	x0, x20
	mov	x1, x21
	bl	_pci_set_drvdata
	stp	x20, x21, [x19, #80]
	mov	x0, x20
	mov	w1, #0
	bl	_pci_resource_start
	str	w0, [x19, #72]
	mov	x0, x20
	mov	w1, #0
	bl	_pci_resource_len
	mov	x1, x0
	str	x0, [x19, #64]
	ldr	w0, [x19, #72]
	bl	_ioremap_nocache
	str	w0, [x19, #20]
	cbz	w0, LBB0_3
; %bb.1:
	mov	x2, x0
	ldr	x3, [x19, #64]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	add	x20, x19, #56
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _bnad_msix_disable@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bnad_msix_disable@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	x9, x19, #60
Lloh5:
	adrp	x10, _BNAD_CF_MSIX@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BNAD_CF_MSIX@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _BNAD_CF_DIM_ENABLED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BNAD_CF_DIM_ENABLED@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #60]
	mov	x0, x19
	bl	_bnad_q_num_init
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldp	w8, w9, [x19]
	mul	w8, w9, w8
	ldp	w9, w10, [x19, #8]
	madd	w8, w10, w9, w8
Lloh10:
	adrp	x9, _BNAD_MAILBOX_MSIX_VECTORS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BNAD_MAILBOX_MSIX_VECTORS@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x8, x9, w8, sxtw
	str	x8, [x19, #48]
Lloh13:
	adrp	x8, _BNAD_TXQ_DEPTH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BNAD_TXQ_DEPTH@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _BNAD_RXQ_DEPTH@GOTPAGE
Lloh17:
	ldr	x9, [x9, _BNAD_RXQ_DEPTH@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, _BFI_TX_COALESCING_TIMEO@GOTPAGE
Lloh20:
	ldr	x10, [x10, _BFI_TX_COALESCING_TIMEO@GOTPAGEOFF]
	stp	w9, w8, [x19, #40]
Lloh21:
	ldr	w8, [x10]
Lloh22:
	adrp	x9, _BFI_RX_COALESCING_TIMEO@GOTPAGE
Lloh23:
	ldr	x9, [x9, _BFI_RX_COALESCING_TIMEO@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	ldr	w0, [x19, #28]
Lloh25:
	adrp	x8, _BNAD_NAME@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BNAD_NAME@GOTPAGEOFF]
Lloh27:
	ldr	x2, [x8]
	ldr	w3, [x19, #16]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sprintf
	ldr	w0, [x19, #28]
	bl	_create_singlethread_workqueue
	str	w0, [x19, #24]
	cbz	w0, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #20]
	bl	_iounmap
LBB0_5:
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
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 AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioremap for bar0 failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"bar0 mapped to %p, len %llu\n"

	.comm	_bnad_msix_disable,4,2          ; @bnad_msix_disable
	.comm	_BNAD_CF_MSIX,4,2               ; @BNAD_CF_MSIX
	.comm	_BNAD_CF_DIM_ENABLED,4,2        ; @BNAD_CF_DIM_ENABLED
	.comm	_BNAD_MAILBOX_MSIX_VECTORS,8,3  ; @BNAD_MAILBOX_MSIX_VECTORS
	.comm	_BNAD_TXQ_DEPTH,4,2             ; @BNAD_TXQ_DEPTH
	.comm	_BNAD_RXQ_DEPTH,4,2             ; @BNAD_RXQ_DEPTH
	.comm	_BFI_TX_COALESCING_TIMEO,4,2    ; @BFI_TX_COALESCING_TIMEO
	.comm	_BFI_RX_COALESCING_TIMEO,4,2    ; @BFI_RX_COALESCING_TIMEO
l_.str.2:                               ; @.str.2
	.asciz	"%s_wq_%d"

	.comm	_BNAD_NAME,8,3                  ; @BNAD_NAME
	.no_dead_strip	_bnad_init
.subsections_via_symbols
