	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_clear_promisc_mode
_mlx4_en_clear_promisc_mode:            ## @mlx4_en_clear_promisc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_netif_msg_rx_status
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_en_warn
LBB0_2:
	movq	_MLX4_EN_FLAG_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movq	(%r14), %rdi
	movl	(%rdi), %eax
	cmpl	$130, %eax
	je	LBB0_15
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_16
## %bb.5:
	movl	8(%rbx), %esi
	movq	_MLX4_FS_ALL_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mlx4_flow_steer_promisc_remove
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_en_err
LBB0_7:
	movq	_MLX4_EN_FLAG_MC_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_15:
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	xorl	%ecx, %ecx
	callq	_mlx4_SET_PORT_qpn_calc
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_en_err                         ## TAILCALL
LBB0_8:
	movl	4(%rbx), %esi
	movl	8(%rbx), %edx
	callq	_mlx4_unicast_promisc_remove
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_en_err
LBB0_10:
	movq	_MLX4_EN_FLAG_MC_PROMISC@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	je	LBB0_16
## %bb.11:
	movq	(%r14), %rdi
	movl	4(%rbx), %esi
	movl	8(%rbx), %edx
	callq	_mlx4_multicast_promisc_remove
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_en_err
LBB0_13:
	movl	(%r15), %eax
LBB0_14:
	notl	%eax
	andl	%eax, (%rbx)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Leaving promiscuous mode\n"

	.comm	_MLX4_EN_FLAG_PROMISC,4,2       ## @MLX4_EN_FLAG_PROMISC
	.comm	_MLX4_FS_ALL_DEFAULT,4,2        ## @MLX4_FS_ALL_DEFAULT
L_.str.1:                               ## @.str.1
	.asciz	"Failed disabling promiscuous mode\n"

	.comm	_MLX4_EN_FLAG_MC_PROMISC,4,2    ## @MLX4_EN_FLAG_MC_PROMISC
L_.str.2:                               ## @.str.2
	.asciz	"Failed disabling unicast promiscuous mode\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed disabling multicast promiscuous mode\n"

	.no_dead_strip	_mlx4_en_clear_promisc_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_clear_promisc_mode
_mlx4_en_clear_promisc_mode:            ; @mlx4_en_clear_promisc_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	bl	_netif_msg_rx_status
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_en_warn
LBB0_2:
Lloh2:
	adrp	x8, _MLX4_EN_FLAG_PROMISC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLX4_EN_FLAG_PROMISC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	ldr	x0, [x20]
	ldr	w8, [x0]
	cmp	w8, #130
	b.eq	LBB0_8
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_17
; %bb.5:
	ldr	w1, [x19, #8]
Lloh5:
	adrp	x8, _MLX4_FS_ALL_DEFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLX4_FS_ALL_DEFAULT@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_mlx4_flow_steer_promisc_remove
	cbz	w0, LBB0_7
; %bb.6:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_en_err
LBB0_7:
Lloh10:
	adrp	x8, _MLX4_EN_FLAG_MC_PROMISC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MLX4_EN_FLAG_MC_PROMISC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	b	LBB0_16
LBB0_8:
	ldp	w2, w1, [x19, #4]
	mov	w3, #0
	bl	_mlx4_SET_PORT_qpn_calc
	cbz	w0, LBB0_17
; %bb.9:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_en_err
LBB0_10:
	ldp	w1, w2, [x19, #4]
	bl	_mlx4_unicast_promisc_remove
	cbz	w0, LBB0_12
; %bb.11:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_en_err
LBB0_12:
	ldr	w8, [x19]
Lloh17:
	adrp	x21, _MLX4_EN_FLAG_MC_PROMISC@GOTPAGE
Lloh18:
	ldr	x21, [x21, _MLX4_EN_FLAG_MC_PROMISC@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.13:
	ldr	x0, [x20]
	ldp	w1, w2, [x19, #4]
	bl	_mlx4_multicast_promisc_remove
	cbz	w0, LBB0_15
; %bb.14:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_en_err
LBB0_15:
	ldr	w8, [x21]
LBB0_16:
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Leaving promiscuous mode\n"

	.comm	_MLX4_EN_FLAG_PROMISC,4,2       ; @MLX4_EN_FLAG_PROMISC
	.comm	_MLX4_FS_ALL_DEFAULT,4,2        ; @MLX4_FS_ALL_DEFAULT
l_.str.1:                               ; @.str.1
	.asciz	"Failed disabling promiscuous mode\n"

	.comm	_MLX4_EN_FLAG_MC_PROMISC,4,2    ; @MLX4_EN_FLAG_MC_PROMISC
l_.str.2:                               ; @.str.2
	.asciz	"Failed disabling unicast promiscuous mode\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed disabling multicast promiscuous mode\n"

	.no_dead_strip	_mlx4_en_clear_promisc_mode
.subsections_via_symbols
