	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_ethtool_add_mac_rule
_mlx4_en_ethtool_add_mac_rule:          ## @mlx4_en_ethtool_add_mac_rule
	.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
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_MLX4_MAC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$16, %edi
	callq	_cpu_to_be64
	movb	%al, -41(%rbp)
	movq	_MLX4_NET_TRANS_RULE_ID_ETH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	16(%rbx), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-41(%rbp), %rsi
	callq	_memcpy
	movl	12(%rbx), %edi
	movl	(%r13), %edx
	movq	%r12, %rsi
	callq	_memcpy
	movq	_FLOW_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.1:
	movl	8(%r15), %r13d
	movq	_VLAN_VID_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_cpu_to_be16
	testl	%r13d, %eax
	je	LBB0_3
## %bb.2:
	movl	4(%r15), %eax
	movl	%eax, 8(%rbx)
	movl	(%r12), %edi
	callq	_cpu_to_be16
	movl	%eax, 4(%rbx)
LBB0_3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_MAC_MASK,4,2              ## @MLX4_MAC_MASK
	.comm	_MLX4_NET_TRANS_RULE_ID_ETH,4,2 ## @MLX4_NET_TRANS_RULE_ID_ETH
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_FLOW_EXT,4,2                   ## @FLOW_EXT
	.comm	_VLAN_VID_MASK,4,2              ## @VLAN_VID_MASK
	.no_dead_strip	_mlx4_en_ethtool_add_mac_rule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_ethtool_add_mac_rule
_mlx4_en_ethtool_add_mac_rule:          ; @mlx4_en_ethtool_add_mac_rule
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _MLX4_MAC_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_MAC_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w0, w8, #16
	bl	_cpu_to_be64
	strb	w0, [sp, #15]
Lloh3:
	adrp	x8, _MLX4_NET_TRANS_RULE_ID_ETH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX4_NET_TRANS_RULE_ID_ETH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	ldr	w0, [x20, #16]
Lloh6:
	adrp	x23, _ETH_ALEN@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x1, sp, #15
	bl	_memcpy
	ldr	w0, [x20, #12]
	ldr	w2, [x23]
	mov	x1, x22
	bl	_memcpy
	ldr	w8, [x21]
Lloh8:
	adrp	x9, _FLOW_EXT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FLOW_EXT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w23, [x21, #8]
Lloh11:
	adrp	x22, _VLAN_VID_MASK@GOTPAGE
Lloh12:
	ldr	x22, [x22, _VLAN_VID_MASK@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_cpu_to_be16
	tst	w0, w23
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x21, #4]
	str	w8, [x20, #8]
	ldr	w0, [x22]
	bl	_cpu_to_be16
	str	w0, [x20, #4]
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_list_add_tail
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_MAC_MASK,4,2              ; @MLX4_MAC_MASK
	.comm	_MLX4_NET_TRANS_RULE_ID_ETH,4,2 ; @MLX4_NET_TRANS_RULE_ID_ETH
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_FLOW_EXT,4,2                   ; @FLOW_EXT
	.comm	_VLAN_VID_MASK,4,2              ; @VLAN_VID_MASK
	.no_dead_strip	_mlx4_en_ethtool_add_mac_rule
.subsections_via_symbols
