	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_init_board
_bnxt_init_board:                       ## @bnxt_init_board
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r15, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_17
LBB0_2:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_flags
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.4:
	movq	_DRV_MODULE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pci_request_regions
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_16
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_16
LBB0_6:
	movl	$64, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_set_mask_and_coherent
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_set_mask_and_coherent
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	xorl	%r12d, %r12d
	jmp	LBB0_16
LBB0_9:
	movq	%r15, %rdi
	callq	_pci_set_master
	movq	%rbx, 72(%r14)
	movq	%r15, 64(%r14)
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_ioremap_bar
	movq	%rax, 56(%r14)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_pci_ioremap_bar
	movq	%rax, 48(%r14)
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_pci_ioremap_bar
	movq	%rax, 40(%r14)
	testq	%rax, %rax
	je	LBB0_14
## %bb.18:
	movq	%r15, %rdi
	callq	_pci_enable_pcie_error_reporting
	leaq	32(%r14), %rdi
	movq	_bnxt_sp_task@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	28(%r14), %rdi
	movq	_bnxt_fw_reset_task@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	24(%r14), %rdi
	callq	_spin_lock_init
	movq	_BNXT_DEFAULT_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_BNXT_DEFAULT_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	%r14, %rdi
	callq	_bnxt_init_dflt_coal
	movq	%r14, %rdi
	addq	$8, %rdi
	movq	_bnxt_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_BNXT_TIMER_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_BNXT_STATE_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	jmp	LBB0_17
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_15
LBB0_14:
	leaq	L_.str.6(%rip), %rsi
LBB0_15:
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_bnxt_unmap_bars
	movq	%r15, %rdi
	callq	_pci_release_regions
LBB0_16:
	movq	%r15, %rdi
	callq	_pci_disable_device
LBB0_17:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot enable PCI device, aborting\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.1:                               ## @.str.1
	.asciz	"Cannot find PCI device base address, aborting\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DRV_MODULE_NAME,4,2            ## @DRV_MODULE_NAME
L_.str.2:                               ## @.str.2
	.asciz	"Cannot obtain PCI resources, aborting\n"

L_.str.3:                               ## @.str.3
	.asciz	"System does not support DMA, aborting\n"

L_.str.4:                               ## @.str.4
	.asciz	"Cannot map device registers, aborting\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.5:                               ## @.str.5
	.asciz	"Cannot map doorbell registers, aborting\n"

L_.str.6:                               ## @.str.6
	.asciz	"Cannot map bar4 registers, aborting\n"

	.comm	_bnxt_sp_task,4,2               ## @bnxt_sp_task
	.comm	_bnxt_fw_reset_task,4,2         ## @bnxt_fw_reset_task
	.comm	_BNXT_DEFAULT_RX_RING_SIZE,4,2  ## @BNXT_DEFAULT_RX_RING_SIZE
	.comm	_BNXT_DEFAULT_TX_RING_SIZE,4,2  ## @BNXT_DEFAULT_TX_RING_SIZE
	.comm	_bnxt_timer,4,2                 ## @bnxt_timer
	.comm	_BNXT_TIMER_INTERVAL,4,2        ## @BNXT_TIMER_INTERVAL
	.comm	_BNXT_STATE_OPEN,4,2            ## @BNXT_STATE_OPEN
	.no_dead_strip	_bnxt_init_board
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_init_board
_bnxt_init_board:                       ; @bnxt_init_board
	.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, x1
	mov	x19, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x21
	mov	x1, x19
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	bl	_pci_enable_device
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_18
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	bl	_pci_resource_flags
Lloh2:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _DRV_MODULE_NAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRV_MODULE_NAME@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_request_regions
	cbz	w0, LBB0_6
; %bb.4:
	mov	x22, x0
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_17
LBB0_5:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_17
LBB0_6:
	mov	w0, #64
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_dma_set_mask_and_coherent
	cbz	x0, LBB0_9
; %bb.7:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_dma_set_mask_and_coherent
	cbz	x0, LBB0_9
; %bb.8:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	w22, #0
	b	LBB0_17
LBB0_9:
	mov	x0, x19
	bl	_pci_set_master
	stp	x19, x21, [x20, #64]
	mov	x0, x19
	mov	w1, #0
	bl	_pci_ioremap_bar
	str	x0, [x20, #56]
	cbz	x0, LBB0_13
; %bb.10:
	mov	x0, x19
	mov	w1, #2
	bl	_pci_ioremap_bar
	str	x0, [x20, #48]
	cbz	x0, LBB0_14
; %bb.11:
	mov	x0, x19
	mov	w1, #4
	bl	_pci_ioremap_bar
	str	x0, [x20, #40]
	cbz	x0, LBB0_15
; %bb.12:
	mov	x0, x19
	bl	_pci_enable_pcie_error_reporting
	add	x0, x20, #32
Lloh17:
	adrp	x8, _bnxt_sp_task@GOTPAGE
Lloh18:
	ldr	x8, [x8, _bnxt_sp_task@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x20, #28
Lloh20:
	adrp	x8, _bnxt_fw_reset_task@GOTPAGE
Lloh21:
	ldr	x8, [x8, _bnxt_fw_reset_task@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x20, #24
	bl	_spin_lock_init
Lloh23:
	adrp	x8, _BNXT_DEFAULT_RX_RING_SIZE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BNXT_DEFAULT_RX_RING_SIZE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _BNXT_DEFAULT_TX_RING_SIZE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _BNXT_DEFAULT_TX_RING_SIZE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #12]
	mov	x0, x20
	bl	_bnxt_init_dflt_coal
	add	x0, x20, #8
Lloh29:
	adrp	x8, _bnxt_timer@GOTPAGE
Lloh30:
	ldr	x8, [x8, _bnxt_timer@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
Lloh32:
	adrp	x8, _BNXT_TIMER_INTERVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BNXT_TIMER_INTERVAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x20, #4]
Lloh35:
	adrp	x8, _BNXT_STATE_OPEN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BNXT_STATE_OPEN@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
	mov	w22, #0
	b	LBB0_18
LBB0_13:
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_14:
Lloh40:
	adrp	x1, l_.str.5@PAGE
Lloh41:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh42:
	adrp	x1, l_.str.6@PAGE
Lloh43:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_dev_err
Lloh44:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w22, w8
	mov	x0, x20
	mov	x1, x19
	bl	_bnxt_unmap_bars
	mov	x0, x19
	bl	_pci_release_regions
LBB0_17:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_18:
	mov	x0, x22
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot enable PCI device, aborting\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.1:                               ; @.str.1
	.asciz	"Cannot find PCI device base address, aborting\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DRV_MODULE_NAME,4,2            ; @DRV_MODULE_NAME
l_.str.2:                               ; @.str.2
	.asciz	"Cannot obtain PCI resources, aborting\n"

l_.str.3:                               ; @.str.3
	.asciz	"System does not support DMA, aborting\n"

l_.str.4:                               ; @.str.4
	.asciz	"Cannot map device registers, aborting\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.5:                               ; @.str.5
	.asciz	"Cannot map doorbell registers, aborting\n"

l_.str.6:                               ; @.str.6
	.asciz	"Cannot map bar4 registers, aborting\n"

	.comm	_bnxt_sp_task,4,2               ; @bnxt_sp_task
	.comm	_bnxt_fw_reset_task,4,2         ; @bnxt_fw_reset_task
	.comm	_BNXT_DEFAULT_RX_RING_SIZE,4,2  ; @BNXT_DEFAULT_RX_RING_SIZE
	.comm	_BNXT_DEFAULT_TX_RING_SIZE,4,2  ; @BNXT_DEFAULT_TX_RING_SIZE
	.comm	_bnxt_timer,4,2                 ; @bnxt_timer
	.comm	_BNXT_TIMER_INTERVAL,4,2        ; @BNXT_TIMER_INTERVAL
	.comm	_BNXT_STATE_OPEN,4,2            ; @BNXT_STATE_OPEN
	.no_dead_strip	_bnxt_init_board
.subsections_via_symbols
