	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_reset
_bnxt_reset:                            ## @bnxt_reset
	.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	%rsi, %r14
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_BNXT_PF
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	4(%rbx), %edi
	callq	_pci_vfs_assigned
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_err
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_err
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r14), %rax
	movq	_ETH_RESET_ALL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:
	cmpl	$67586, (%rbx)                  ## imm = 0x10802
	jle	LBB0_4
## %bb.9:
	movq	_BNXT_FW_RESET_CHIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_bnxt_firmware_reset
	testl	%eax, %eax
	jne	LBB0_6
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_17
LBB0_11:
	movq	_ETH_RESET_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.12:
	cmpl	$67586, (%rbx)                  ## imm = 0x10802
	jle	LBB0_4
## %bb.15:
	movq	_BNXT_FW_RESET_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_bnxt_firmware_reset
	testl	%eax, %eax
	jne	LBB0_6
## %bb.16:
	leaq	L_.str.3(%rip), %rsi
LBB0_17:
	movq	%r15, %rdi
	callq	_netdev_info
	movq	$0, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reset is not supported from a VF\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"Reset not allowed when VFs are assigned to VMs\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ETH_RESET_ALL,8,3              ## @ETH_RESET_ALL
	.comm	_BNXT_FW_RESET_CHIP,4,2         ## @BNXT_FW_RESET_CHIP
L_.str.2:                               ## @.str.2
	.asciz	"Reset request successful. Reload driver to complete reset\n"

	.comm	_ETH_RESET_AP,8,3               ## @ETH_RESET_AP
	.comm	_BNXT_FW_RESET_AP,4,2           ## @BNXT_FW_RESET_AP
L_.str.3:                               ## @.str.3
	.asciz	"Reset Application Processor request successful.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bnxt_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_reset
_bnxt_reset:                            ; @bnxt_reset
	.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	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	bl	_BNXT_PF
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x21, #4]
	bl	_pci_vfs_assigned
	cbz	x0, LBB0_7
; %bb.2:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
LBB0_4:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_5:
	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
LBB0_7:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _ETH_RESET_ALL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ETH_RESET_ALL@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:
	ldr	w8, [x21]
	mov	w9, #2051
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.lt	LBB0_4
; %bb.9:
Lloh11:
	adrp	x8, _BNXT_FW_RESET_CHIP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BNXT_FW_RESET_CHIP@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bnxt_firmware_reset
	cbnz	w0, LBB0_6
; %bb.10:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_11:
Lloh16:
	adrp	x9, _ETH_RESET_AP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ETH_RESET_AP@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.12:
	ldr	w8, [x21]
	mov	w9, #2051
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.lt	LBB0_4
; %bb.13:
Lloh19:
	adrp	x8, _BNXT_FW_RESET_AP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BNXT_FW_RESET_AP@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bnxt_firmware_reset
	cbnz	w0, LBB0_6
; %bb.14:
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_15:
	mov	x0, x20
	bl	_netdev_info
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_6
LBB0_16:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reset is not supported from a VF\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"Reset not allowed when VFs are assigned to VMs\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ETH_RESET_ALL,8,3              ; @ETH_RESET_ALL
	.comm	_BNXT_FW_RESET_CHIP,4,2         ; @BNXT_FW_RESET_CHIP
l_.str.2:                               ; @.str.2
	.asciz	"Reset request successful. Reload driver to complete reset\n"

	.comm	_ETH_RESET_AP,8,3               ; @ETH_RESET_AP
	.comm	_BNXT_FW_RESET_AP,4,2           ; @BNXT_FW_RESET_AP
l_.str.3:                               ; @.str.3
	.asciz	"Reset Application Processor request successful.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bnxt_reset
.subsections_via_symbols
