	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_config_bridged_mode     ## -- Begin function qlcnic_config_bridged_mode
	.p2align	4, 0x90
_qlcnic_config_bridged_mode:            ## @qlcnic_config_bridged_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_QLCNIC_BRIDGE_ENABLED@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	xorl	%ecx, %ecx
	testl	%eax, (%rdi)
	setne	%cl
	xorl	%ebx, %ebx
	cmpl	%esi, %ecx
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r12
	movl	%esi, %r14d
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_QLCNIC_HOST_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$23, %edi
	callq	_cpu_to_le64
	movq	%rax, -48(%rbp)
	movq	_QLCNIC_H2C_OPCODE_CONFIG_BRIDGING@GOTPCREL(%rip), %rax
	movl	16(%r12), %edi
	shll	$16, %edi
	orl	(%rax), %edi
	callq	_cpu_to_le64
	movq	%rax, -56(%rbp)
	movl	%r14d, %edi
	callq	_cpu_to_le64
	movq	-64(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_qlcnic_send_cmd_descs
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_3:
	movl	(%r13), %eax
	xorl	%eax, (%r12)
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_BRIDGE_ENABLED,4,2      ## @QLCNIC_BRIDGE_ENABLED
	.comm	_QLCNIC_HOST_REQUEST,4,2        ## @QLCNIC_HOST_REQUEST
	.comm	_QLCNIC_H2C_OPCODE_CONFIG_BRIDGING,4,2 ## @QLCNIC_H2C_OPCODE_CONFIG_BRIDGING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not send configure bridge mode request\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_config_bridged_mode     ; -- Begin function qlcnic_config_bridged_mode
	.p2align	2
_qlcnic_config_bridged_mode:            ; @qlcnic_config_bridged_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _QLCNIC_BRIDGE_ENABLED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _QLCNIC_BRIDGE_ENABLED@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	cset	w8, ne
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_5
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh2:
	adrp	x8, _QLCNIC_HOST_REQUEST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QLCNIC_HOST_REQUEST@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	lsl	w0, w8, #23
	bl	_cpu_to_le64
	str	x0, [sp, #24]
Lloh5:
	adrp	x8, _QLCNIC_H2C_OPCODE_CONFIG_BRIDGING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLCNIC_H2C_OPCODE_CONFIG_BRIDGING@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w0, w8, w9, lsl #16
	bl	_cpu_to_le64
	str	x0, [sp, #16]
	mov	x0, x20
	bl	_cpu_to_le64
	ldr	x8, [sp, #8]
	str	x0, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_qlcnic_send_cmd_descs
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_4:
	ldr	w8, [x21]
	ldr	w9, [x19]
	eor	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_BRIDGE_ENABLED,4,2      ; @QLCNIC_BRIDGE_ENABLED
	.comm	_QLCNIC_HOST_REQUEST,4,2        ; @QLCNIC_HOST_REQUEST
	.comm	_QLCNIC_H2C_OPCODE_CONFIG_BRIDGING,4,2 ; @QLCNIC_H2C_OPCODE_CONFIG_BRIDGING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not send configure bridge mode request\n"

.subsections_via_symbols
