	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_hwrm_set_br_mode
_bnxt_hwrm_set_br_mode:                 ## @bnxt_hwrm_set_br_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -32(%rbp)
	movq	_HWRM_FUNC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_cpu_to_le16
	movl	%eax, -24(%rbp)
	movq	_FUNC_CFG_REQ_ENABLES_EVB_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, -28(%rbp)
	movq	_BRIDGE_MODE_VEB@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_FUNC_CFG_REQ_EVB_MODE_VEB@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	_BRIDGE_MODE_VEPA@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_FUNC_CFG_REQ_EVB_MODE_VEPA@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_hwrm_send_message
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HWRM_FUNC_CFG,4,2              ## @HWRM_FUNC_CFG
	.comm	_FUNC_CFG_REQ_ENABLES_EVB_MODE,4,2 ## @FUNC_CFG_REQ_ENABLES_EVB_MODE
	.comm	_BRIDGE_MODE_VEB,8,3            ## @BRIDGE_MODE_VEB
	.comm	_FUNC_CFG_REQ_EVB_MODE_VEB,4,2  ## @FUNC_CFG_REQ_EVB_MODE_VEB
	.comm	_BRIDGE_MODE_VEPA,8,3           ## @BRIDGE_MODE_VEPA
	.comm	_FUNC_CFG_REQ_EVB_MODE_VEPA,4,2 ## @FUNC_CFG_REQ_EVB_MODE_VEPA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.no_dead_strip	_bnxt_hwrm_set_br_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_hwrm_set_br_mode
_bnxt_hwrm_set_br_mode:                 ; @bnxt_hwrm_set_br_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x8, _HWRM_FUNC_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HWRM_FUNC_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, sp
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	mov	w0, #65535
	bl	_cpu_to_le16
	str	w0, [sp, #8]
Lloh3:
	adrp	x8, _FUNC_CFG_REQ_ENABLES_EVB_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FUNC_CFG_REQ_ENABLES_EVB_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [sp, #4]
Lloh6:
	adrp	x8, _BRIDGE_MODE_VEB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BRIDGE_MODE_VEB@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _FUNC_CFG_REQ_EVB_MODE_VEB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FUNC_CFG_REQ_EVB_MODE_VEB@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh11:
	adrp	x8, _BRIDGE_MODE_VEPA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BRIDGE_MODE_VEPA@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_5
; %bb.3:
Lloh14:
	adrp	x8, _FUNC_CFG_REQ_EVB_MODE_VEPA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FUNC_CFG_REQ_EVB_MODE_VEPA@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [sp]
Lloh16:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #16
	bl	_hwrm_send_message
	b	LBB0_6
LBB0_5:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	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
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_HWRM_FUNC_CFG,4,2              ; @HWRM_FUNC_CFG
	.comm	_FUNC_CFG_REQ_ENABLES_EVB_MODE,4,2 ; @FUNC_CFG_REQ_ENABLES_EVB_MODE
	.comm	_BRIDGE_MODE_VEB,8,3            ; @BRIDGE_MODE_VEB
	.comm	_FUNC_CFG_REQ_EVB_MODE_VEB,4,2  ; @FUNC_CFG_REQ_EVB_MODE_VEB
	.comm	_BRIDGE_MODE_VEPA,8,3           ; @BRIDGE_MODE_VEPA
	.comm	_FUNC_CFG_REQ_EVB_MODE_VEPA,4,2 ; @FUNC_CFG_REQ_EVB_MODE_VEPA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.no_dead_strip	_bnxt_hwrm_set_br_mode
.subsections_via_symbols
