	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iavf_set_promiscuous           ## -- Begin function iavf_set_promiscuous
	.p2align	4, 0x90
_iavf_set_promiscuous:                  ## @iavf_set_promiscuous
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdx
	movq	_VIRTCHNL_OP_UNKNOWN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_8
## %bb.1:
	movl	%esi, %r14d
	movq	_FLAG_VF_UNICAST_PROMISC@GOTPCREL(%rip), %rcx
	movq	_FLAG_VF_MULTICAST_PROMISC@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	movl	%esi, %edx
	notl	%edx
	testl	%edx, %ecx
	jne	LBB0_3
## %bb.2:
	movq	_IAVF_FLAG_PROMISC_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	_IAVF_FLAG_AQ_REQUEST_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 12(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movl	(%r15), %eax
LBB0_3:
	testl	%r14d, %eax
	je	LBB0_5
## %bb.4:
	movq	_IAVF_FLAG_ALLMULTI_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	_IAVF_FLAG_AQ_REQUEST_ALLMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 12(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_info
LBB0_5:
	testl	%r14d, %r14d
	jne	LBB0_7
## %bb.6:
	movq	_IAVF_FLAG_PROMISC_ON@GOTPCREL(%rip), %rax
	movq	_IAVF_FLAG_ALLMULTI_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, 8(%rbx)
	movq	_IAVF_FLAG_AQ_RELEASE_PROMISC@GOTPCREL(%rip), %rax
	movq	_IAVF_FLAG_AQ_RELEASE_ALLMULTI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, 12(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_info
LBB0_7:
	movq	_VIRTCHNL_OP_CONFIG_PROMISCUOUS_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	16(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -28(%rbp)
	movl	%r14d, -32(%rbp)
	movq	(%rax), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$8, %ecx
	callq	_iavf_send_pf_msg
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VIRTCHNL_OP_UNKNOWN,8,3        ## @VIRTCHNL_OP_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot set promiscuous mode, command %d pending\n"

	.comm	_FLAG_VF_UNICAST_PROMISC,4,2    ## @FLAG_VF_UNICAST_PROMISC
	.comm	_FLAG_VF_MULTICAST_PROMISC,4,2  ## @FLAG_VF_MULTICAST_PROMISC
	.comm	_IAVF_FLAG_PROMISC_ON,4,2       ## @IAVF_FLAG_PROMISC_ON
	.comm	_IAVF_FLAG_AQ_REQUEST_PROMISC,4,2 ## @IAVF_FLAG_AQ_REQUEST_PROMISC
L_.str.1:                               ## @.str.1
	.asciz	"Entering promiscuous mode\n"

	.comm	_IAVF_FLAG_ALLMULTI_ON,4,2      ## @IAVF_FLAG_ALLMULTI_ON
	.comm	_IAVF_FLAG_AQ_REQUEST_ALLMULTI,4,2 ## @IAVF_FLAG_AQ_REQUEST_ALLMULTI
L_.str.2:                               ## @.str.2
	.asciz	"Entering multicast promiscuous mode\n"

	.comm	_IAVF_FLAG_AQ_RELEASE_PROMISC,4,2 ## @IAVF_FLAG_AQ_RELEASE_PROMISC
	.comm	_IAVF_FLAG_AQ_RELEASE_ALLMULTI,4,2 ## @IAVF_FLAG_AQ_RELEASE_ALLMULTI
L_.str.3:                               ## @.str.3
	.asciz	"Leaving promiscuous mode\n"

	.comm	_VIRTCHNL_OP_CONFIG_PROMISCUOUS_MODE,8,3 ## @VIRTCHNL_OP_CONFIG_PROMISCUOUS_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iavf_set_promiscuous           ; -- Begin function iavf_set_promiscuous
	.p2align	2
_iavf_set_promiscuous:                  ; @iavf_set_promiscuous
	.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
	mov	x19, x0
	ldr	x2, [x0]
Lloh0:
	adrp	x8, _VIRTCHNL_OP_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIRTCHNL_OP_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_8
; %bb.1:
	mov	x20, x1
Lloh3:
	adrp	x8, _FLAG_VF_UNICAST_PROMISC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLAG_VF_UNICAST_PROMISC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
Lloh6:
	adrp	x21, _FLAG_VF_MULTICAST_PROMISC@GOTPAGE
Lloh7:
	ldr	x21, [x21, _FLAG_VF_MULTICAST_PROMISC@GOTPAGEOFF]
	ldr	w8, [x21]
	orr	w9, w8, w9
	bics	wzr, w9, w1
	b.ne	LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _IAVF_FLAG_PROMISC_ON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IAVF_FLAG_PROMISC_ON@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _IAVF_FLAG_AQ_REQUEST_PROMISC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IAVF_FLAG_AQ_REQUEST_PROMISC@GOTPAGEOFF]
	ldp	w10, w11, [x19, #8]
	orr	w8, w10, w8
Lloh13:
	ldr	w9, [x9]
	bic	w9, w11, w9
	stp	w8, w9, [x19, #8]
	ldr	x0, [x19, #24]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	ldr	w8, [x21]
LBB0_3:
Lloh16:
	adrp	x21, _IAVF_FLAG_ALLMULTI_ON@GOTPAGE
Lloh17:
	ldr	x21, [x21, _IAVF_FLAG_ALLMULTI_ON@GOTPAGEOFF]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x21]
Lloh18:
	adrp	x9, _IAVF_FLAG_AQ_REQUEST_ALLMULTI@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IAVF_FLAG_AQ_REQUEST_ALLMULTI@GOTPAGEOFF]
	ldp	w10, w11, [x19, #8]
	orr	w8, w10, w8
Lloh20:
	ldr	w9, [x9]
	bic	w9, w11, w9
	stp	w8, w9, [x19, #8]
	ldr	x0, [x19, #24]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
LBB0_5:
	cbnz	w20, LBB0_7
; %bb.6:
Lloh23:
	adrp	x8, _IAVF_FLAG_PROMISC_ON@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IAVF_FLAG_PROMISC_ON@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	ldp	w9, w10, [x19, #8]
	bic	w8, w9, w8
Lloh26:
	adrp	x9, _IAVF_FLAG_AQ_RELEASE_PROMISC@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IAVF_FLAG_AQ_RELEASE_PROMISC@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x11, _IAVF_FLAG_AQ_RELEASE_ALLMULTI@GOTPAGE
Lloh30:
	ldr	x11, [x11, _IAVF_FLAG_AQ_RELEASE_ALLMULTI@GOTPAGEOFF]
Lloh31:
	ldr	w11, [x11]
	orr	w9, w11, w9
	bic	w9, w10, w9
	stp	w8, w9, [x19, #8]
	ldr	x0, [x19, #24]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_info
LBB0_7:
Lloh34:
	adrp	x8, _VIRTCHNL_OP_CONFIG_PROMISCUOUS_MODE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _VIRTCHNL_OP_CONFIG_PROMISCUOUS_MODE@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x19]
	ldr	x9, [x19, #16]
	ldr	w9, [x9]
	stp	w20, w9, [sp, #8]
	ldr	x1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #8
	bl	_iavf_send_pf_msg
	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
LBB0_8:
	ldr	x0, [x19, #24]
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_VIRTCHNL_OP_UNKNOWN,8,3        ; @VIRTCHNL_OP_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot set promiscuous mode, command %d pending\n"

	.comm	_FLAG_VF_UNICAST_PROMISC,4,2    ; @FLAG_VF_UNICAST_PROMISC
	.comm	_FLAG_VF_MULTICAST_PROMISC,4,2  ; @FLAG_VF_MULTICAST_PROMISC
	.comm	_IAVF_FLAG_PROMISC_ON,4,2       ; @IAVF_FLAG_PROMISC_ON
	.comm	_IAVF_FLAG_AQ_REQUEST_PROMISC,4,2 ; @IAVF_FLAG_AQ_REQUEST_PROMISC
l_.str.1:                               ; @.str.1
	.asciz	"Entering promiscuous mode\n"

	.comm	_IAVF_FLAG_ALLMULTI_ON,4,2      ; @IAVF_FLAG_ALLMULTI_ON
	.comm	_IAVF_FLAG_AQ_REQUEST_ALLMULTI,4,2 ; @IAVF_FLAG_AQ_REQUEST_ALLMULTI
l_.str.2:                               ; @.str.2
	.asciz	"Entering multicast promiscuous mode\n"

	.comm	_IAVF_FLAG_AQ_RELEASE_PROMISC,4,2 ; @IAVF_FLAG_AQ_RELEASE_PROMISC
	.comm	_IAVF_FLAG_AQ_RELEASE_ALLMULTI,4,2 ; @IAVF_FLAG_AQ_RELEASE_ALLMULTI
l_.str.3:                               ; @.str.3
	.asciz	"Leaving promiscuous mode\n"

	.comm	_VIRTCHNL_OP_CONFIG_PROMISCUOUS_MODE,8,3 ; @VIRTCHNL_OP_CONFIG_PROMISCUOUS_MODE
.subsections_via_symbols
