	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_set_promisc_mode
_mlx4_en_set_promisc_mode:              ## @mlx4_en_set_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	_MLX4_EN_FLAG_PROMISC@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_netif_msg_rx_status
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_en_warn
LBB0_4:
	movl	(%r15), %eax
	orl	%eax, (%rbx)
	movq	(%r14), %rdi
	movl	(%rdi), %eax
	cmpl	$130, %eax
	je	LBB0_10
## %bb.5:
	cmpl	$129, %eax
	je	LBB0_12
## %bb.6:
	cmpl	$128, %eax
	jne	LBB0_19
## %bb.7:
	movl	4(%rbx), %esi
	movl	8(%rbx), %edx
	movq	_MLX4_FS_ALL_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_mlx4_flow_steer_promisc_add
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_en_err
LBB0_9:
	movq	_MLX4_EN_FLAG_MC_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_10:
	movl	4(%rbx), %esi
	movl	8(%rbx), %edx
	movl	$1, %ecx
	callq	_mlx4_SET_PORT_qpn_calc
	testl	%eax, %eax
	je	LBB0_19
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_en_err
	jmp	LBB0_19
LBB0_12:
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	callq	_mlx4_unicast_promisc_add
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_en_err
LBB0_14:
	movq	_MLX4_EN_FLAG_MC_PROMISC@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	jne	LBB0_19
## %bb.15:
	movq	(%r14), %rdi
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	callq	_mlx4_multicast_promisc_add
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_en_err
LBB0_17:
	movl	(%r15), %eax
LBB0_18:
	orl	%eax, (%rbx)
LBB0_19:
	movq	(%r14), %rdi
	movl	4(%rbx), %esi
	movq	_MLX4_MCAST_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_mlx4_SET_MCAST_FLTR
	testl	%eax, %eax
	je	LBB0_1
## %bb.20:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_en_err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_EN_FLAG_PROMISC,4,2       ## @MLX4_EN_FLAG_PROMISC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Entering promiscuous mode\n"

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

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

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

	.comm	_MLX4_MCAST_DISABLE,4,2         ## @MLX4_MCAST_DISABLE
L_.str.4:                               ## @.str.4
	.asciz	"Failed disabling multicast filter\n"

	.no_dead_strip	_mlx4_en_set_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_set_promisc_mode
_mlx4_en_set_promisc_mode:              ; @mlx4_en_set_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
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _MLX4_EN_FLAG_PROMISC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MLX4_EN_FLAG_PROMISC@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	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
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	bl	_netif_msg_rx_status
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_en_warn
LBB0_4:
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x0, [x20]
	ldr	w8, [x0]
	cmp	w8, #130
	b.eq	LBB0_10
; %bb.5:
	cmp	w8, #129
	b.eq	LBB0_12
; %bb.6:
	cmp	w8, #128
	b.ne	LBB0_19
; %bb.7:
	ldp	w1, w2, [x19, #4]
Lloh4:
	adrp	x8, _MLX4_FS_ALL_DEFAULT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MLX4_FS_ALL_DEFAULT@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	bl	_mlx4_flow_steer_promisc_add
	cbz	w0, LBB0_9
; %bb.8:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_en_err
LBB0_9:
Lloh9:
	adrp	x8, _MLX4_EN_FLAG_MC_PROMISC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX4_EN_FLAG_MC_PROMISC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	b	LBB0_18
LBB0_10:
	ldp	w1, w2, [x19, #4]
	mov	w3, #1
	bl	_mlx4_SET_PORT_qpn_calc
	cbz	w0, LBB0_19
; %bb.11:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_en_err
	b	LBB0_19
LBB0_12:
	ldp	w2, w1, [x19, #4]
	bl	_mlx4_unicast_promisc_add
	cbz	w0, LBB0_14
; %bb.13:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_en_err
LBB0_14:
	ldr	w8, [x19]
Lloh16:
	adrp	x21, _MLX4_EN_FLAG_MC_PROMISC@GOTPAGE
Lloh17:
	ldr	x21, [x21, _MLX4_EN_FLAG_MC_PROMISC@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_19
; %bb.15:
	ldr	x0, [x20]
	ldp	w2, w1, [x19, #4]
	bl	_mlx4_multicast_promisc_add
	cbz	w0, LBB0_17
; %bb.16:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_en_err
LBB0_17:
	ldr	w8, [x21]
LBB0_18:
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_19:
	ldr	x0, [x20]
	ldr	w1, [x19, #4]
Lloh20:
	adrp	x8, _MLX4_MCAST_DISABLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MLX4_MCAST_DISABLE@GOTPAGEOFF]
Lloh22:
	ldr	w4, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_mlx4_SET_MCAST_FLTR
	cbz	w0, LBB0_1
; %bb.20:
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_EN_FLAG_PROMISC,4,2       ; @MLX4_EN_FLAG_PROMISC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Entering promiscuous mode\n"

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

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

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

	.comm	_MLX4_MCAST_DISABLE,4,2         ; @MLX4_MCAST_DISABLE
l_.str.4:                               ; @.str.4
	.asciz	"Failed disabling multicast filter\n"

	.no_dead_strip	_mlx4_en_set_promisc_mode
.subsections_via_symbols
