	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_hwrm_if_change
_bnxt_hwrm_if_change:                   ## @bnxt_hwrm_if_change
	.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
	movq	96(%rdi), %r14
	movq	$0, -48(%rbp)
	movq	_BNXT_FW_CAP_IF_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, (%rdi)
	je	LBB0_20
## %bb.1:
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_HWRM_FUNC_DRV_IF_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:
	movq	_FUNC_DRV_IF_CHANGE_REQ_FLAGS_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, -48(%rbp)
LBB0_3:
	leaq	88(%r13), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movl	$8, %edx
	callq	__hwrm_send_message
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_20
LBB0_5:
	movl	(%r14), %edi
	callq	_le32_to_cpu
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.6:
	movq	_FUNC_DRV_IF_CHANGE_RESP_FLAGS_RESC_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_FUNC_DRV_IF_CHANGE_RESP_FLAGS_HOT_FW_RESET_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_BNXT_STATE_IN_FW_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	80(%r13), %r12
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	%r15d, %eax
	andl	%r14d, %eax
	jne	LBB0_9
## %bb.8:
	movl	84(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_9:
	orl	%r15d, %ebx
	testl	%r14d, %ebx
	jne	LBB0_10
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	testl	%r14d, %r15d
	je	LBB0_16
## %bb.11:
	movq	%r13, %rdi
	callq	_bnxt_fw_init_one
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	movq	_BNXT_STATE_ABORT_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
	jmp	LBB0_20
LBB0_13:
	movq	%r13, %rdi
	callq	_bnxt_clear_int_mode
	movq	%r13, %rdi
	callq	_bnxt_init_int_mode
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	movl	84(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_err
	jmp	LBB0_20
LBB0_15:
	movq	_BNXT_STATE_FW_RESET_DET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
LBB0_16:
	movq	%r13, %rdi
	callq	_BNXT_NEW_RM
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_bnxt_hwrm_func_resc_qcaps
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r13)
	movups	%xmm0, 40(%r13)
	movups	%xmm0, 56(%r13)
	movq	$0, 72(%r13)
	testl	%r14d, %r15d
	jne	LBB0_19
## %bb.18:
	movups	%xmm0, 8(%r13)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_FW_CAP_IF_CHANGE,4,2      ## @BNXT_FW_CAP_IF_CHANGE
	.comm	_HWRM_FUNC_DRV_IF_CHANGE,4,2    ## @HWRM_FUNC_DRV_IF_CHANGE
	.comm	_FUNC_DRV_IF_CHANGE_REQ_FLAGS_UP,4,2 ## @FUNC_DRV_IF_CHANGE_REQ_FLAGS_UP
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.comm	_FUNC_DRV_IF_CHANGE_RESP_FLAGS_RESC_CHANGE,4,2 ## @FUNC_DRV_IF_CHANGE_RESP_FLAGS_RESC_CHANGE
	.comm	_FUNC_DRV_IF_CHANGE_RESP_FLAGS_HOT_FW_RESET_DONE,4,2 ## @FUNC_DRV_IF_CHANGE_RESP_FLAGS_HOT_FW_RESET_DONE
	.comm	_BNXT_STATE_IN_FW_RESET,4,2     ## @BNXT_STATE_IN_FW_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RESET_DONE not set during FW reset.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_BNXT_STATE_ABORT_ERR,4,2       ## @BNXT_STATE_ABORT_ERR
L_.str.1:                               ## @.str.1
	.asciz	"init int mode failed\n"

	.comm	_BNXT_STATE_FW_RESET_DET,4,2    ## @BNXT_STATE_FW_RESET_DET
	.no_dead_strip	_bnxt_hwrm_if_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_hwrm_if_change
_bnxt_hwrm_if_change:                   ; @bnxt_hwrm_if_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x23, [x0, #96]
	str	xzr, [sp, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BNXT_FW_CAP_IF_CHANGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNXT_FW_CAP_IF_CHANGE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh3:
	adrp	x8, _HWRM_FUNC_DRV_IF_CHANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HWRM_FUNC_DRV_IF_CHANGE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	cbz	w20, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _FUNC_DRV_IF_CHANGE_REQ_FLAGS_UP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FUNC_DRV_IF_CHANGE_REQ_FLAGS_UP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [sp, #8]
LBB0_3:
	add	x22, x19, #88
	mov	x0, x22
	bl	_mutex_lock
Lloh9:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #8
	bl	__hwrm_send_message
	cbz	w0, LBB0_5
; %bb.4:
	mov	x21, x0
	mov	x0, x22
	bl	_mutex_unlock
	b	LBB0_9
LBB0_5:
	ldr	w0, [x23]
	bl	_le32_to_cpu
	mov	x21, x0
	mov	x0, x22
	bl	_mutex_unlock
	cbz	w20, LBB0_8
; %bb.6:
Lloh12:
	adrp	x8, _FUNC_DRV_IF_CHANGE_RESP_FLAGS_RESC_CHANGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FUNC_DRV_IF_CHANGE_RESP_FLAGS_RESC_CHANGE@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
Lloh15:
	adrp	x8, _FUNC_DRV_IF_CHANGE_RESP_FLAGS_HOT_FW_RESET_DONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FUNC_DRV_IF_CHANGE_RESP_FLAGS_HOT_FW_RESET_DONE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w22, w8, w21
Lloh18:
	adrp	x8, _BNXT_STATE_IN_FW_RESET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BNXT_STATE_IN_FW_RESET@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	add	x20, x19, #80
	mov	x1, x20
	bl	_test_bit
	cmp	x0, #0
	ccmp	w22, #0, #0, ne
	b.eq	LBB0_10
; %bb.7:
	and	w8, w23, w21
	orr	w8, w8, w22
	cbnz	w8, LBB0_11
LBB0_8:
	mov	w21, #0
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	ldr	w0, [x19, #84]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_11:
	cbz	w22, LBB0_17
; %bb.12:
	mov	x0, x19
	bl	_bnxt_fw_init_one
	cbz	w0, LBB0_14
; %bb.13:
	mov	x21, x0
Lloh26:
	adrp	x8, _BNXT_STATE_ABORT_ERR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BNXT_STATE_ABORT_ERR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	b	LBB0_9
LBB0_14:
	mov	x0, x19
	bl	_bnxt_clear_int_mode
	mov	x0, x19
	bl	_bnxt_init_int_mode
	cbz	w0, LBB0_16
; %bb.15:
	mov	x21, x0
	ldr	w0, [x19, #84]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
	b	LBB0_9
LBB0_16:
Lloh31:
	adrp	x8, _BNXT_STATE_FW_RESET_DET@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BNXT_STATE_FW_RESET_DET@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
LBB0_17:
	mov	x0, x19
	bl	_BNXT_NEW_RM
	cbz	x0, LBB0_8
; %bb.18:
	mov	x0, x19
	mov	w1, #1
	bl	_bnxt_hwrm_func_resc_qcaps
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #24]
	stur	q0, [x19, #40]
	stur	q0, [x19, #56]
	str	xzr, [x19, #72]
	mov	w21, #0
	cbnz	w22, LBB0_9
; %bb.19:
	stp	xzr, xzr, [x19, #8]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_FW_CAP_IF_CHANGE,4,2      ; @BNXT_FW_CAP_IF_CHANGE
	.comm	_HWRM_FUNC_DRV_IF_CHANGE,4,2    ; @HWRM_FUNC_DRV_IF_CHANGE
	.comm	_FUNC_DRV_IF_CHANGE_REQ_FLAGS_UP,4,2 ; @FUNC_DRV_IF_CHANGE_REQ_FLAGS_UP
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.comm	_FUNC_DRV_IF_CHANGE_RESP_FLAGS_RESC_CHANGE,4,2 ; @FUNC_DRV_IF_CHANGE_RESP_FLAGS_RESC_CHANGE
	.comm	_FUNC_DRV_IF_CHANGE_RESP_FLAGS_HOT_FW_RESET_DONE,4,2 ; @FUNC_DRV_IF_CHANGE_RESP_FLAGS_HOT_FW_RESET_DONE
	.comm	_BNXT_STATE_IN_FW_RESET,4,2     ; @BNXT_STATE_IN_FW_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RESET_DONE not set during FW reset.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_BNXT_STATE_ABORT_ERR,4,2       ; @BNXT_STATE_ABORT_ERR
l_.str.1:                               ; @.str.1
	.asciz	"init int mode failed\n"

	.comm	_BNXT_STATE_FW_RESET_DET,4,2    ; @BNXT_STATE_FW_RESET_DET
	.no_dead_strip	_bnxt_hwrm_if_change
.subsections_via_symbols
