	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_hwrm_func_qcfg
_bnxt_hwrm_func_qcfg:                   ## @bnxt_hwrm_func_qcfg
	.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	%rdi, %rbx
	movq	$0, -48(%rbp)
	movq	40(%rdi), %r13
	movq	_HWRM_FUNC_QCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r15
	movq	%r15, %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_cpu_to_le16
	movl	%eax, -48(%rbp)
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	__hwrm_send_message
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.1:
	movl	20(%r13), %edi
	callq	_le16_to_cpu
	movl	%eax, %r12d
	movq	_FUNC_QCFG_RESP_FLAGS_FW_DCBX_AGENT_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FUNC_QCFG_RESP_FLAGS_FW_LLDP_AGENT_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	testl	%r12d, %ecx
	je	LBB0_4
## %bb.2:
	movq	_BNXT_FW_CAP_LLDP_AGENT@GOTPCREL(%rip), %rdx
	movl	24(%rbx), %ecx
	orl	(%rdx), %ecx
	movl	%ecx, 24(%rbx)
	testl	%r12d, %eax
	je	LBB0_4
## %bb.3:
	movq	_BNXT_FW_CAP_DCBX_AGENT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 24(%rbx)
LBB0_4:
	movq	%rbx, %rdi
	callq	_BNXT_PF
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_FUNC_QCFG_RESP_FLAGS_MULTI_HOST@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_BNXT_FLAG_MULTI_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rbx)
LBB0_7:
	movl	(%r13), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	ja	LBB0_9
## %bb.8:
	movl	%eax, (%rbx)
LBB0_9:
	movq	_BRIDGE_MODE_VEB@GOTPCREL(%rip), %rax
	cmpl	$67335, 4(%rbx)                 ## imm = 0x10707
	jl	LBB0_14
## %bb.10:
	movq	8(%r13), %rcx
	movq	_FUNC_QCFG_RESP_EVB_MODE_VEB@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_14
## %bb.11:
	movq	_FUNC_QCFG_RESP_EVB_MODE_VEPA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_12
## %bb.13:
	movq	_BRIDGE_MODE_VEPA@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_BRIDGE_MODE_UNDEF@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	16(%r13), %edi
	callq	_le16_to_cpu
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	_BNXT_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_16:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HWRM_FUNC_QCFG,4,2             ## @HWRM_FUNC_QCFG
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.comm	_FUNC_QCFG_RESP_FLAGS_FW_DCBX_AGENT_ENABLED,4,2 ## @FUNC_QCFG_RESP_FLAGS_FW_DCBX_AGENT_ENABLED
	.comm	_FUNC_QCFG_RESP_FLAGS_FW_LLDP_AGENT_ENABLED,4,2 ## @FUNC_QCFG_RESP_FLAGS_FW_LLDP_AGENT_ENABLED
	.comm	_BNXT_FW_CAP_LLDP_AGENT,4,2     ## @BNXT_FW_CAP_LLDP_AGENT
	.comm	_BNXT_FW_CAP_DCBX_AGENT,4,2     ## @BNXT_FW_CAP_DCBX_AGENT
	.comm	_FUNC_QCFG_RESP_FLAGS_MULTI_HOST,4,2 ## @FUNC_QCFG_RESP_FLAGS_MULTI_HOST
	.comm	_BNXT_FLAG_MULTI_HOST,4,2       ## @BNXT_FLAG_MULTI_HOST
	.comm	_FUNC_QCFG_RESP_EVB_MODE_VEB,8,3 ## @FUNC_QCFG_RESP_EVB_MODE_VEB
	.comm	_BRIDGE_MODE_VEB,4,2            ## @BRIDGE_MODE_VEB
	.comm	_FUNC_QCFG_RESP_EVB_MODE_VEPA,8,3 ## @FUNC_QCFG_RESP_EVB_MODE_VEPA
	.comm	_BRIDGE_MODE_VEPA,4,2           ## @BRIDGE_MODE_VEPA
	.comm	_BRIDGE_MODE_UNDEF,4,2          ## @BRIDGE_MODE_UNDEF
	.comm	_BNXT_MAX_MTU,4,2               ## @BNXT_MAX_MTU
	.comm	_VLAN_VID_MASK,4,2              ## @VLAN_VID_MASK
	.no_dead_strip	_bnxt_hwrm_func_qcfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_hwrm_func_qcfg
_bnxt_hwrm_func_qcfg:                   ; @bnxt_hwrm_func_qcfg
	.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
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	x23, [x0, #40]
Lloh0:
	adrp	x8, _HWRM_FUNC_QCFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HWRM_FUNC_QCFG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	mov	w0, #65535
	bl	_cpu_to_le16
	str	w0, [sp, #8]
	add	x20, x19, #12
	mov	x0, x20
	bl	_mutex_lock
Lloh3:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #8
	bl	__hwrm_send_message
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.1:
	ldr	w0, [x23, #20]
	bl	_le16_to_cpu
	mov	x22, x0
Lloh6:
	adrp	x8, _FUNC_QCFG_RESP_FLAGS_FW_DCBX_AGENT_ENABLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FUNC_QCFG_RESP_FLAGS_FW_DCBX_AGENT_ENABLED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _FUNC_QCFG_RESP_FLAGS_FW_LLDP_AGENT_ENABLED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FUNC_QCFG_RESP_FLAGS_FW_LLDP_AGENT_ENABLED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w9, w9, w8
	tst	w9, w0
	b.eq	LBB0_4
; %bb.2:
Lloh12:
	adrp	x9, _BNXT_FW_CAP_LLDP_AGENT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BNXT_FW_CAP_LLDP_AGENT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	ldr	w10, [x19, #24]
	orr	w9, w10, w9
	str	w9, [x19, #24]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _BNXT_FW_CAP_DCBX_AGENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BNXT_FW_CAP_DCBX_AGENT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [x19, #24]
LBB0_4:
	mov	x0, x19
	bl	_BNXT_PF
	cbz	x0, LBB0_7
; %bb.5:
Lloh18:
	adrp	x8, _FUNC_QCFG_RESP_FLAGS_MULTI_HOST@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FUNC_QCFG_RESP_FLAGS_MULTI_HOST@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.6:
Lloh21:
	adrp	x8, _BNXT_FLAG_MULTI_HOST@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BNXT_FLAG_MULTI_HOST@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
	str	w8, [x19, #20]
LBB0_7:
	ldr	w8, [x23]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hi	LBB0_9
; %bb.8:
	str	w8, [x19]
LBB0_9:
	ldr	w8, [x19, #4]
	mov	w9, #1799
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.lt	LBB0_11
; %bb.10:
	ldr	x8, [x23, #8]
Lloh24:
	adrp	x9, _FUNC_QCFG_RESP_EVB_MODE_VEB@GOTPAGE
Lloh25:
	ldr	x9, [x9, _FUNC_QCFG_RESP_EVB_MODE_VEB@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
LBB0_11:
Lloh27:
	adrp	x8, _BRIDGE_MODE_VEB@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BRIDGE_MODE_VEB@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh29:
	adrp	x9, _FUNC_QCFG_RESP_EVB_MODE_VEPA@GOTPAGE
Lloh30:
	ldr	x9, [x9, _FUNC_QCFG_RESP_EVB_MODE_VEPA@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
Lloh32:
	adrp	x10, _BRIDGE_MODE_UNDEF@GOTPAGE
Lloh33:
	ldr	x10, [x10, _BRIDGE_MODE_UNDEF@GOTPAGEOFF]
Lloh34:
	adrp	x11, _BRIDGE_MODE_VEPA@GOTPAGE
Lloh35:
	ldr	x11, [x11, _BRIDGE_MODE_VEPA@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, eq
LBB0_13:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	w0, [x23, #16]
	bl	_le16_to_cpu
	str	w0, [x19, #8]
	cbnz	w0, LBB0_15
; %bb.14:
Lloh36:
	adrp	x8, _BNXT_MAX_MTU@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BNXT_MAX_MTU@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_15:
	mov	x0, x20
	bl	_mutex_unlock
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_HWRM_FUNC_QCFG,4,2             ; @HWRM_FUNC_QCFG
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.comm	_FUNC_QCFG_RESP_FLAGS_FW_DCBX_AGENT_ENABLED,4,2 ; @FUNC_QCFG_RESP_FLAGS_FW_DCBX_AGENT_ENABLED
	.comm	_FUNC_QCFG_RESP_FLAGS_FW_LLDP_AGENT_ENABLED,4,2 ; @FUNC_QCFG_RESP_FLAGS_FW_LLDP_AGENT_ENABLED
	.comm	_BNXT_FW_CAP_LLDP_AGENT,4,2     ; @BNXT_FW_CAP_LLDP_AGENT
	.comm	_BNXT_FW_CAP_DCBX_AGENT,4,2     ; @BNXT_FW_CAP_DCBX_AGENT
	.comm	_FUNC_QCFG_RESP_FLAGS_MULTI_HOST,4,2 ; @FUNC_QCFG_RESP_FLAGS_MULTI_HOST
	.comm	_BNXT_FLAG_MULTI_HOST,4,2       ; @BNXT_FLAG_MULTI_HOST
	.comm	_FUNC_QCFG_RESP_EVB_MODE_VEB,8,3 ; @FUNC_QCFG_RESP_EVB_MODE_VEB
	.comm	_BRIDGE_MODE_VEB,4,2            ; @BRIDGE_MODE_VEB
	.comm	_FUNC_QCFG_RESP_EVB_MODE_VEPA,8,3 ; @FUNC_QCFG_RESP_EVB_MODE_VEPA
	.comm	_BRIDGE_MODE_VEPA,4,2           ; @BRIDGE_MODE_VEPA
	.comm	_BRIDGE_MODE_UNDEF,4,2          ; @BRIDGE_MODE_UNDEF
	.comm	_BNXT_MAX_MTU,4,2               ; @BNXT_MAX_MTU
	.comm	_VLAN_VID_MASK,4,2              ; @VLAN_VID_MASK
	.no_dead_strip	_bnxt_hwrm_func_qcfg
.subsections_via_symbols
