	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arp_SetProxy                   ## -- Begin function arp_SetProxy
	.p2align	4, 0x90
_arp_SetProxy:                          ## @arp_SetProxy
	.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
	subq	$176, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-200(%rbp), %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	leaq	-176(%rbp), %rsi
	movl	$1, %r15d
	movl	%r12d, %edi
	movl	$1, %edx
	callq	_arp_EtherAddr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$4, -192(%rbp)
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -184(%rbp)
	movl	-188(%rbp), %ebx
	leaq	-176(%rbp), %rdi
	callq	_LLADDR
	movl	-176(%rbp), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_memcpy
	movl	-196(%rbp), %edi
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SET_SA_FAMILY
	movl	%r12d, -196(%rbp)
	movq	_ATF_PERM@GOTPCREL(%rip), %rax
	movq	_ATF_PUBL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -200(%rbp)
	movq	_SIOCSARP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-200(%rbp), %rdx
	movl	%r14d, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ID0ioctl
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_4
LBB0_1:
	movq	_LOG_PHASE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	xorl	%r15d, %r15d
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%r15d, %eax
	addq	$176, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_PHASE_BIT,4,2              ## @LOG_PHASE_BIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot determine ethernet address for proxy ARP\n"

	.comm	_AF_UNSPEC,4,2                  ## @AF_UNSPEC
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_ATF_PERM,4,2                   ## @ATF_PERM
	.comm	_ATF_PUBL,4,2                   ## @ATF_PUBL
	.comm	_SIOCSARP,4,2                   ## @SIOCSARP
	.comm	_LogERROR,4,2                   ## @LogERROR
L_.str.1:                               ## @.str.1
	.asciz	"arp_SetProxy: ioctl(SIOCSARP): %s\n"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arp_SetProxy                   ; -- Begin function arp_SetProxy
	.p2align	2
_arp_SetProxy:                          ; @arp_SetProxy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	and	x0, x20, #0xffffffff
	add	x1, sp, #32
	mov	w2, #1
	bl	_arp_EtherAddr
	cbz	w0, LBB0_3
; %bb.1:
	mov	w8, #4
Lloh3:
	adrp	x9, _AF_UNSPEC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AF_UNSPEC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w8, [sp, #16]
	str	w9, [sp, #24]
	ldr	w21, [sp, #20]
	add	x0, sp, #32
	bl	_LLADDR
	mov	x1, x0
	ldr	w2, [sp, #32]
	mov	x0, x21
	bl	_memcpy
	ldr	w0, [sp, #12]
Lloh6:
	adrp	x8, _AF_INET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_SET_SA_FAMILY
Lloh9:
	adrp	x8, _ATF_PERM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATF_PERM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _ATF_PUBL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ATF_PUBL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	w8, w20, [sp, #8]
Lloh15:
	adrp	x8, _SIOCSARP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIOCSARP@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ID0ioctl
	tbnz	x0, #63, LBB0_4
; %bb.2:
	mov	w0, #1
	b	LBB0_6
LBB0_3:
Lloh18:
	adrp	x8, _LOG_PHASE_BIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LOG_PHASE_BIT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh23:
	adrp	x8, _LogERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh25:
	ldr	w19, [x8]
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
LBB0_5:
	bl	_log_Printf
	mov	w0, #0
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_PHASE_BIT,4,2              ; @LOG_PHASE_BIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot determine ethernet address for proxy ARP\n"

	.comm	_AF_UNSPEC,4,2                  ; @AF_UNSPEC
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_ATF_PERM,4,2                   ; @ATF_PERM
	.comm	_ATF_PUBL,4,2                   ; @ATF_PUBL
	.comm	_SIOCSARP,4,2                   ; @SIOCSARP
	.comm	_LogERROR,4,2                   ; @LogERROR
l_.str.1:                               ; @.str.1
	.asciz	"arp_SetProxy: ioctl(SIOCSARP): %s\n"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
