	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_update_loopback_state  ## -- Begin function mlx4_en_update_loopback_state
	.p2align	4, 0x90
_mlx4_en_update_loopback_state:         ## @mlx4_en_update_loopback_state
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_netdev_priv
	movq	%rax, %r13
	movq	_NETIF_F_LOOPBACK@GOTPCREL(%rip), %r12
	movq	_MLX4_WQE_CTRL_FORCE_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%r14d, (%r12)
	je	LBB0_2
## %bb.1:
	callq	_cpu_to_be32
	orl	%eax, 40(%r13)
	jmp	LBB0_3
LBB0_2:
	notl	%edi
	callq	_cpu_to_be32
	andl	%eax, 40(%r13)
LBB0_3:
	movq	_MLX4_EN_FLAG_RX_FILTER_NEEDED@GOTPCREL(%rip), %rbx
	movq	_MLX4_EN_FLAG_ENABLE_HW_LOOPBACK@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	orl	(%rbx), %eax
	notl	%eax
	andl	%eax, (%r13)
	movq	8(%r13), %rax
	movq	8(%rax), %rdi
	callq	_mlx4_is_mfunc
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	testl	%r14d, (%r12)
	jne	LBB0_7
## %bb.5:
	cmpq	$0, 32(%r13)
	jne	LBB0_7
## %bb.6:
	movl	(%rbx), %eax
	orl	%eax, (%r13)
LBB0_7:
	movq	8(%r13), %rax
	movq	8(%rax), %rdi
	callq	_mlx4_is_mfunc
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	cmpq	$0, 32(%r13)
	je	LBB0_10
LBB0_9:
	movl	(%r15), %eax
	orl	%eax, (%r13)
LBB0_10:
	movq	8(%r13), %rdi
	callq	_mutex_lock
	movq	8(%r13), %rax
	movq	8(%rax), %rax
	movq	_MLX4_DEV_CAP_FLAG2_UPDATE_QP_SRC_CHECK_LB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_18
## %bb.11:
	movq	24(%r13), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.13:
	xorl	%r15d, %r15d
	testl	%r14d, (%r12)
	setne	%al
	cmpl	$0, 4(%r13)
	jle	LBB0_18
## %bb.14:
	movb	%al, %r15b
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r12d
	movq	16(%r13), %rsi
	addq	%r14, %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_mlx4_en_change_mcast_lb
	testl	%r12d, %r12d
	cmovnel	%r12d, %eax
	incq	%rbx
	movslq	4(%r13), %rcx
	addq	$4, %r14
	cmpq	%rcx, %rbx
	jl	LBB0_15
## %bb.16:
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movq	8(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_mlx4_warn
LBB0_18:
	movq	8(%r13), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_LOOPBACK,4,2           ## @NETIF_F_LOOPBACK
	.comm	_MLX4_WQE_CTRL_FORCE_LOOPBACK,4,2 ## @MLX4_WQE_CTRL_FORCE_LOOPBACK
	.comm	_MLX4_EN_FLAG_RX_FILTER_NEEDED,4,2 ## @MLX4_EN_FLAG_RX_FILTER_NEEDED
	.comm	_MLX4_EN_FLAG_ENABLE_HW_LOOPBACK,4,2 ## @MLX4_EN_FLAG_ENABLE_HW_LOOPBACK
	.comm	_MLX4_DEV_CAP_FLAG2_UPDATE_QP_SRC_CHECK_LB,4,2 ## @MLX4_DEV_CAP_FLAG2_UPDATE_QP_SRC_CHECK_LB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to change mcast loopback\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_update_loopback_state  ; -- Begin function mlx4_en_update_loopback_state
	.p2align	2
_mlx4_en_update_loopback_state:         ; @mlx4_en_update_loopback_state
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x21, _NETIF_F_LOOPBACK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NETIF_F_LOOPBACK@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _MLX4_WQE_CTRL_FORCE_LOOPBACK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MLX4_WQE_CTRL_FORCE_LOOPBACK@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	bl	_cpu_to_be32
	ldr	w8, [x19, #40]
	orr	w8, w8, w0
	b	LBB0_3
LBB0_2:
	mvn	w0, w0
	bl	_cpu_to_be32
	ldr	w8, [x19, #40]
	and	w8, w8, w0
LBB0_3:
	str	w8, [x19, #40]
Lloh5:
	adrp	x23, _MLX4_EN_FLAG_RX_FILTER_NEEDED@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MLX4_EN_FLAG_RX_FILTER_NEEDED@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh7:
	adrp	x22, _MLX4_EN_FLAG_ENABLE_HW_LOOPBACK@GOTPAGE
Lloh8:
	ldr	x22, [x22, _MLX4_EN_FLAG_ENABLE_HW_LOOPBACK@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	bl	_mlx4_is_mfunc
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w8, [x21]
	tst	w8, w20
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_7
; %bb.6:
	ldr	w8, [x23]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	bl	_mlx4_is_mfunc
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_10
LBB0_9:
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_10:
	ldr	x0, [x19, #8]
	bl	_mutex_lock
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MLX4_DEV_CAP_FLAG2_UPDATE_QP_SRC_CHECK_LB@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG2_UPDATE_QP_SRC_CHECK_LB@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.11:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_18
; %bb.12:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.13:
	ldr	w8, [x21]
	tst	w8, w20
	cset	w20, ne
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.14:
	mov	x21, #0
	mov	x23, #0
	mov	w22, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x1, x8, x21
	mov	x0, x19
	mov	x2, x20
	bl	_mlx4_en_change_mcast_lb
	cmp	w22, #0
	csel	w22, w0, w22, eq
	add	x23, x23, #1
	ldrsw	x8, [x19, #4]
	add	x21, x21, #4
	cmp	x23, x8
	b.lt	LBB0_15
; %bb.16:
	cbz	w22, LBB0_18
; %bb.17:
	ldr	x0, [x19, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mlx4_warn
LBB0_18:
	ldr	x0, [x19, #8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_LOOPBACK,4,2           ; @NETIF_F_LOOPBACK
	.comm	_MLX4_WQE_CTRL_FORCE_LOOPBACK,4,2 ; @MLX4_WQE_CTRL_FORCE_LOOPBACK
	.comm	_MLX4_EN_FLAG_RX_FILTER_NEEDED,4,2 ; @MLX4_EN_FLAG_RX_FILTER_NEEDED
	.comm	_MLX4_EN_FLAG_ENABLE_HW_LOOPBACK,4,2 ; @MLX4_EN_FLAG_ENABLE_HW_LOOPBACK
	.comm	_MLX4_DEV_CAP_FLAG2_UPDATE_QP_SRC_CHECK_LB,4,2 ; @MLX4_DEV_CAP_FLAG2_UPDATE_QP_SRC_CHECK_LB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to change mcast loopback\n"

.subsections_via_symbols
