	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_add_mac_ipaddr_entry
_i40iw_add_mac_ipaddr_entry:            ## @i40iw_add_mac_ipaddr_entry
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	$1, %esi
	callq	_i40iw_get_cqp_request
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	$1, (%rax)
	movl	28(%rax), %edi
	movq	%r12, %rsi
	callq	_ether_addr_copy
	movl	%r14d, 24(%rbx)
	movq	_OP_ADD_LOCAL_MAC_IPADDR_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%r15, 16(%rbx)
	movq	%rbx, 8(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i40iw_handle_cqp_op
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_i40iw_pr_err
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_i40iw_pr_err
	movq	_I40IW_ERR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cqp_request memory failed\n"

	.comm	_I40IW_ERR_NO_MEMORY,4,2        ## @I40IW_ERR_NO_MEMORY
	.comm	_OP_ADD_LOCAL_MAC_IPADDR_ENTRY,4,2 ## @OP_ADD_LOCAL_MAC_IPADDR_ENTRY
L_.str.1:                               ## @.str.1
	.asciz	"CQP-OP Add MAC Ip entry fail"

	.no_dead_strip	_i40iw_add_mac_ipaddr_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_add_mac_ipaddr_entry
_i40iw_add_mac_ipaddr_entry:            ; @i40iw_add_mac_ipaddr_entry
	.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	x22, x1
	mov	x19, x0
	mov	w23, #1
	mov	w1, #1
	bl	_i40iw_get_cqp_request
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	str	w23, [x0]
	ldr	w0, [x0, #28]
	mov	x1, x22
	bl	_ether_addr_copy
	str	w20, [x21, #24]
Lloh0:
	adrp	x8, _OP_ADD_LOCAL_MAC_IPADDR_ENTRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OP_ADD_LOCAL_MAC_IPADDR_ENTRY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #32]
	stp	x21, x19, [x21, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_i40iw_handle_cqp_op
	mov	x19, x0
	cbz	w0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_i40iw_pr_err
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_i40iw_pr_err
Lloh7:
	adrp	x8, _I40IW_ERR_NO_MEMORY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I40IW_ERR_NO_MEMORY@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
LBB0_4:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cqp_request memory failed\n"

	.comm	_I40IW_ERR_NO_MEMORY,4,2        ; @I40IW_ERR_NO_MEMORY
	.comm	_OP_ADD_LOCAL_MAC_IPADDR_ENTRY,4,2 ; @OP_ADD_LOCAL_MAC_IPADDR_ENTRY
l_.str.1:                               ; @.str.1
	.asciz	"CQP-OP Add MAC Ip entry fail"

	.no_dead_strip	_i40iw_add_mac_ipaddr_entry
.subsections_via_symbols
