	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_tcp_udp_rule
_add_tcp_udp_rule:                      ## @add_tcp_udp_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$64, %edi
	callq	_kzalloc
	movq	%rax, %r14
	movl	(%rbx), %esi
	movl	$64, %edi
	callq	_kzalloc
	movq	%rax, %r13
	movl	(%rbx), %esi
	movl	$64, %edi
	callq	_kzalloc
	movq	%rax, %r15
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	testq	%r13, %r13
	je	LBB0_3
## %bb.2:
	testq	%r15, %r15
	je	LBB0_3
## %bb.5:
	movq	_MLX4_NET_TRANS_RULE_ID_IPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r13)
	movq	_TCP_V4_FLOW@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_8
## %bb.6:
	movl	24(%r12), %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_mlx4_en_ethtool_add_mac_rule_by_ipv4
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.7:
	movq	_MLX4_NET_TRANS_RULE_ID_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r15)
	leaq	16(%r12), %rax
	movl	28(%r12), %ecx
	movl	%ecx, 52(%r13)
	movl	24(%r12), %ecx
	movl	%ecx, 48(%r13)
	movl	20(%r12), %ecx
	movl	%ecx, 28(%r15)
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_8:
	movl	8(%r12), %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_mlx4_en_ethtool_add_mac_rule_by_ipv4
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
LBB0_4:
	movq	%r14, %rdi
	callq	_kfree
	movq	%r13, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_kfree
LBB0_19:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_MLX4_NET_TRANS_RULE_ID_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r15)
	movl	12(%r12), %eax
	movl	%eax, 52(%r13)
	movl	8(%r12), %eax
	movl	%eax, 48(%r13)
	movl	4(%r12), %eax
	movl	%eax, 28(%r15)
	movq	%r12, %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	cmpq	$0, 56(%r12)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_12
## %bb.11:
	movq	_EN_ETHTOOL_WORD_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r13)
LBB0_12:
	cmpq	$0, 48(%r12)
	je	LBB0_14
## %bb.13:
	movq	_EN_ETHTOOL_WORD_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r13)
LBB0_14:
	cmpq	$0, 40(%r12)
	je	LBB0_16
## %bb.15:
	movq	_EN_ETHTOOL_SHORT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
LBB0_16:
	cmpq	$0, 32(%r12)
	je	LBB0_18
## %bb.17:
	movq	_EN_ETHTOOL_SHORT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
LBB0_18:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_list_add_tail
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_list_add_tail
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLX4_NET_TRANS_RULE_ID_IPV4,4,2 ## @MLX4_NET_TRANS_RULE_ID_IPV4
	.comm	_TCP_V4_FLOW,4,2                ## @TCP_V4_FLOW
	.comm	_MLX4_NET_TRANS_RULE_ID_TCP,4,2 ## @MLX4_NET_TRANS_RULE_ID_TCP
	.comm	_MLX4_NET_TRANS_RULE_ID_UDP,4,2 ## @MLX4_NET_TRANS_RULE_ID_UDP
	.comm	_EN_ETHTOOL_WORD_MASK,8,3       ## @EN_ETHTOOL_WORD_MASK
	.comm	_EN_ETHTOOL_SHORT_MASK,8,3      ## @EN_ETHTOOL_SHORT_MASK
	.no_dead_strip	_add_tcp_udp_rule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_tcp_udp_rule
_add_tcp_udp_rule:                      ; @add_tcp_udp_rule
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x3
	mov	x19, x2
	mov	x22, x1
	mov	x24, x0
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #64
	bl	_kzalloc
	mov	x23, x0
	ldr	w1, [x20]
	mov	w0, #64
	bl	_kzalloc
	mov	x21, x0
	ldr	w1, [x20]
	mov	w0, #64
	bl	_kzalloc
	mov	x20, x0
	cmp	x23, #0
	ccmp	x21, #0, #4, ne
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _MLX4_NET_TRANS_RULE_ID_IPV4@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLX4_NET_TRANS_RULE_ID_IPV4@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x21, #56]
Lloh8:
	adrp	x8, _TCP_V4_FLOW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TCP_V4_FLOW@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w25
	b.ne	LBB0_5
; %bb.3:
	ldr	w4, [x22, #24]
	mov	x0, x24
	mov	x1, x22
	mov	x2, x19
	mov	x3, x23
	bl	_mlx4_en_ethtool_add_mac_rule_by_ipv4
	mov	x24, x0
	cbnz	w0, LBB0_6
; %bb.4:
Lloh11:
	adrp	x8, _MLX4_NET_TRANS_RULE_ID_TCP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLX4_NET_TRANS_RULE_ID_TCP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #56]
	ldr	d0, [x22, #24]
	str	d0, [x21, #48]
	add	x8, x22, #16
	ldr	w9, [x22, #20]
	str	w9, [x20, #28]
	b	LBB0_9
LBB0_5:
	ldr	w4, [x22, #8]
	mov	x0, x24
	mov	x1, x22
	mov	x2, x19
	mov	x3, x23
	bl	_mlx4_en_ethtool_add_mac_rule_by_ipv4
	mov	x24, x0
	cbz	w0, LBB0_8
LBB0_6:
	mov	x0, x23
	bl	_kfree
	mov	x0, x21
	bl	_kfree
	mov	x0, x20
	bl	_kfree
LBB0_7:
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh14:
	adrp	x8, _MLX4_NET_TRANS_RULE_ID_UDP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MLX4_NET_TRANS_RULE_ID_UDP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20, #56]
	ldr	d0, [x22, #8]
	str	d0, [x21, #48]
	ldr	w8, [x22, #4]
	str	w8, [x20, #28]
	mov	x8, x22
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	ldr	x9, [x22, #56]
Lloh17:
	adrp	x8, _EN_ETHTOOL_WORD_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EN_ETHTOOL_WORD_MASK@GOTPAGEOFF]
	cbz	x9, LBB0_11
; %bb.10:
	ldr	x9, [x8]
	str	x9, [x21, #40]
LBB0_11:
	ldr	x9, [x22, #48]
	cbz	x9, LBB0_13
; %bb.12:
	ldr	x8, [x8]
	str	x8, [x21, #32]
LBB0_13:
	ldr	x9, [x22, #40]
Lloh19:
	adrp	x8, _EN_ETHTOOL_SHORT_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EN_ETHTOOL_SHORT_MASK@GOTPAGEOFF]
	cbz	x9, LBB0_15
; %bb.14:
	ldr	x9, [x8]
	str	x9, [x20, #16]
LBB0_15:
	ldr	x9, [x22, #32]
	cbz	x9, LBB0_17
; %bb.16:
	ldr	x8, [x8]
	str	x8, [x20, #8]
LBB0_17:
	mov	x0, x21
	mov	x1, x19
	bl	_list_add_tail
	mov	x0, x20
	mov	x1, x19
	bl	_list_add_tail
	mov	w24, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX4_NET_TRANS_RULE_ID_IPV4,4,2 ; @MLX4_NET_TRANS_RULE_ID_IPV4
	.comm	_TCP_V4_FLOW,4,2                ; @TCP_V4_FLOW
	.comm	_MLX4_NET_TRANS_RULE_ID_TCP,4,2 ; @MLX4_NET_TRANS_RULE_ID_TCP
	.comm	_MLX4_NET_TRANS_RULE_ID_UDP,4,2 ; @MLX4_NET_TRANS_RULE_ID_UDP
	.comm	_EN_ETHTOOL_WORD_MASK,8,3       ; @EN_ETHTOOL_WORD_MASK
	.comm	_EN_ETHTOOL_SHORT_MASK,8,3      ; @EN_ETHTOOL_SHORT_MASK
	.no_dead_strip	_add_tcp_udp_rule
.subsections_via_symbols
