	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -36(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_HOST_CTX_STATE_FREED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	_QLCNIC_CMD_CONFIGURE_MAC_RX_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movq	_QLC_83XX_MBX_CMD_NO_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	leaq	-36(%rbp), %rsi
	movq	%r12, %rdi
	callq	_qlcnic_83xx_set_interface_id_promisc
	movq	%r12, %rdi
	callq	_qlcnic_84xx_check
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%r12, %rdi
	callq	_qlcnic_sriov_pf_check
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_VPORT_MISS_MODE_ACCEPT_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_9:
	orl	-36(%rbp), %r15d
	movq	(%r14), %rax
	movl	%r15d, 4(%rax)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_qlcnic_issue_cmd
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_qlcnic_free_mbx_args
LBB0_12:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_13
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_HOST_CTX_STATE_FREED,8,3 ## @QLCNIC_HOST_CTX_STATE_FREED
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QLCNIC_CMD_CONFIGURE_MAC_RX_MODE,4,2 ## @QLCNIC_CMD_CONFIGURE_MAC_RX_MODE
	.comm	_QLC_83XX_MBX_CMD_NO_WAIT,4,2   ## @QLC_83XX_MBX_CMD_NO_WAIT
	.comm	_VPORT_MISS_MODE_ACCEPT_ALL,4,2 ## @VPORT_MISS_MODE_ACCEPT_ALL
.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, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	wzr, [sp, #12]
	ldr	x8, [x0]
	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]
	b	LBB0_10
LBB0_2:
	mov	x21, x1
	mov	x19, x0
Lloh5:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x20, x0
Lloh8:
	adrp	x8, _QLCNIC_CMD_CONFIGURE_MAC_RX_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QLCNIC_CMD_CONFIGURE_MAC_RX_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.4:
Lloh11:
	adrp	x8, _QLC_83XX_MBX_CMD_NO_WAIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QLC_83XX_MBX_CMD_NO_WAIT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	add	x1, sp, #12
	mov	x0, x19
	bl	_qlcnic_83xx_set_interface_id_promisc
	mov	x0, x19
	bl	_qlcnic_84xx_check
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_qlcnic_sriov_pf_check
Lloh14:
	adrp	x8, _VPORT_MISS_MODE_ACCEPT_ALL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VPORT_MISS_MODE_ACCEPT_ALL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w21, w21, w8, eq
LBB0_6:
	ldr	w8, [sp, #12]
	orr	w8, w8, w21
	ldr	x9, [x20]
	str	w8, [x9, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_qlcnic_issue_cmd
	mov	x22, x0
	cbz	w0, LBB0_11
; %bb.7:
	mov	x0, x20
	bl	_qlcnic_free_mbx_args
LBB0_8:
	mov	x0, x20
	bl	_kfree
	b	LBB0_11
LBB0_9:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_HOST_CTX_STATE_FREED,8,3 ; @QLCNIC_HOST_CTX_STATE_FREED
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QLCNIC_CMD_CONFIGURE_MAC_RX_MODE,4,2 ; @QLCNIC_CMD_CONFIGURE_MAC_RX_MODE
	.comm	_QLC_83XX_MBX_CMD_NO_WAIT,4,2   ; @QLC_83XX_MBX_CMD_NO_WAIT
	.comm	_VPORT_MISS_MODE_ACCEPT_ALL,4,2 ; @VPORT_MISS_MODE_ACCEPT_ALL
.subsections_via_symbols
