	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_nic_set_promisc    ## -- Begin function qlcnic_83xx_nic_set_promisc
	.p2align	4, 0x90
_qlcnic_83xx_nic_set_promisc:           ## @qlcnic_83xx_nic_set_promisc
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -28(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_HOST_CTX_STATE_FREED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_QLCNIC_CMD_CONFIGURE_MAC_RX_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_qlcnic_alloc_mbx_args
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	callq	_qlcnic_83xx_set_interface_id_promisc
	xorl	%eax, %eax
	testl	%ebx, %ebx
	setne	%al
	orl	-28(%rbp), %eax
	movq	-40(%rbp), %rcx
	movl	%eax, 4(%rcx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qlcnic_issue_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
LBB0_4:
	leaq	-40(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_HOST_CTX_STATE_FREED,8,3 ## @QLCNIC_HOST_CTX_STATE_FREED
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLCNIC_CMD_CONFIGURE_MAC_RX_MODE,4,2 ## @QLCNIC_CMD_CONFIGURE_MAC_RX_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Promiscous mode config failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_nic_set_promisc    ; -- Begin function qlcnic_83xx_nic_set_promisc
	.p2align	2
_qlcnic_83xx_nic_set_promisc:           ; @qlcnic_83xx_nic_set_promisc
	.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
	str	wzr, [sp, #12]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _QLCNIC_HOST_CTX_STATE_FREED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLCNIC_HOST_CTX_STATE_FREED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_2:
	mov	x20, x1
	mov	x19, x0
Lloh6:
	adrp	x8, _QLCNIC_CMD_CONFIGURE_MAC_RX_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLCNIC_CMD_CONFIGURE_MAC_RX_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, sp
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	add	x1, sp, #12
	mov	x0, x19
	bl	_qlcnic_83xx_set_interface_id_promisc
	cmp	w20, #0
	cset	w8, ne
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	ldr	x9, [sp]
	str	w8, [x9, #4]
	mov	x1, sp
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_4:
	mov	x0, sp
	bl	_qlcnic_free_mbx_args
LBB0_5:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_HOST_CTX_STATE_FREED,8,3 ; @QLCNIC_HOST_CTX_STATE_FREED
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLCNIC_CMD_CONFIGURE_MAC_RX_MODE,4,2 ; @QLCNIC_CMD_CONFIGURE_MAC_RX_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Promiscous mode config failed\n"

.subsections_via_symbols
