	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_ip_rule
_add_ip_rule:                           ## @add_ip_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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$48, %edi
	callq	_kzalloc
	movq	%rax, %r12
	movl	(%rbx), %esi
	movl	$48, %edi
	callq	_kzalloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	testq	%r12, %r12
	je	LBB0_2
## %bb.4:
	movl	(%r15), %r8d
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_mlx4_en_ethtool_add_mac_rule_by_ipv4
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:
	movq	_MLX4_NET_TRANS_RULE_ID_IPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movl	4(%r15), %eax
	movl	%eax, 32(%r12)
	cmpq	$0, 16(%r15)
	je	LBB0_7
## %bb.6:
	movq	_EN_ETHTOOL_WORD_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r12)
LBB0_7:
	movl	(%r15), %eax
	movl	%eax, 16(%r12)
	cmpq	$0, 8(%r15)
	je	LBB0_9
## %bb.8:
	movq	_EN_ETHTOOL_WORD_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
LBB0_9:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_list_add_tail
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movq	%r14, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_EN_ETHTOOL_WORD_MASK,8,3       ## @EN_ETHTOOL_WORD_MASK
	.no_dead_strip	_add_ip_rule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_ip_rule
_add_ip_rule:                           ; @add_ip_rule
	.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, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #48
	bl	_kzalloc
	mov	x19, x0
	ldr	w1, [x22]
	mov	w0, #48
	bl	_kzalloc
	mov	x22, x0
	cmp	x0, #0
	ccmp	x19, #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	w23, w8
	b	LBB0_3
LBB0_2:
	ldr	w4, [x21]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_mlx4_en_ethtool_add_mac_rule_by_ipv4
	mov	x23, x0
	cbz	w0, LBB0_5
LBB0_3:
	mov	x0, x22
	bl	_kfree
	mov	x0, x19
	bl	_kfree
LBB0_4:
	mov	x0, x23
	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
	ret
LBB0_5:
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, [x19, #40]
	ldr	w8, [x21, #4]
	str	w8, [x19, #32]
	ldr	x9, [x21, #16]
Lloh8:
	adrp	x8, _EN_ETHTOOL_WORD_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EN_ETHTOOL_WORD_MASK@GOTPAGEOFF]
	cbz	x9, LBB0_7
; %bb.6:
	ldr	x9, [x8]
	str	x9, [x19, #24]
LBB0_7:
	ldr	w9, [x21]
	str	w9, [x19, #16]
	ldr	x9, [x21, #8]
	cbz	x9, LBB0_9
; %bb.8:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_list_add_tail
	mov	w23, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.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	_EN_ETHTOOL_WORD_MASK,8,3       ; @EN_ETHTOOL_WORD_MASK
	.no_dead_strip	_add_ip_rule
.subsections_via_symbols
