	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rarp_reply
_rarp_reply:                            ## @rarp_reply
	.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
	movq	%rcx, %r12
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	36(%rsi), %rdi
	movl	%edx, %esi
	callq	_update_arptab
	movq	_REVARP_REPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, 40(%rbx)
	movl	36(%rbx), %ecx
	movl	%ecx, 4(%rbx)
	movw	%ax, 8(%rbx)
	movq	16(%r15), %rax
	movl	(%rax), %ecx
	movzwl	4(%rax), %eax
	movw	%ax, 4(%rbx)
	movl	%ecx, (%rbx)
	movq	16(%r15), %rax
	movl	(%rax), %ecx
	movzwl	4(%rax), %eax
	movw	%ax, 40(%rbx)
	movl	%ecx, 36(%rbx)
	movq	28(%rbx), %rax
	movl	%r14d, (%rax)
	movq	20(%rbx), %rax
	movl	8(%r15), %ecx
	movl	%ecx, (%rax)
	leaq	44(%rbx), %rdi
	leaq	-44(%r12), %rsi
	callq	_bzero
	movl	4(%r15), %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_write
	cmpq	%r12, %rax
	je	LBB0_2
## %bb.1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_logmsg
LBB0_2:
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.4:
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movslq	(%r15), %r15
	movl	12(%rbx), %edi
	callq	_eatoa
	movslq	%eax, %rbx
	movl	%r14d, %edi
	callq	_ntohl
	movl	%eax, %edi
	callq	_intoa
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_logmsg                         ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REVARP_REPLY,4,2               ## @REVARP_REPLY
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write: only %d of %d bytes written"

	.comm	_verbose,8,3                    ## @verbose
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"%s %s at %s REPLIED"

	.comm	_ETHERTYPE_REVARP,4,2           ## @ETHERTYPE_REVARP
	.no_dead_strip	_rarp_reply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rarp_reply
_rarp_reply:                            ; @rarp_reply
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x0, x1, #36
	mov	x1, x2
	bl	_update_arptab
Lloh0:
	adrp	x8, _REVARP_REPLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REVARP_REPLY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [x20, #40]
	strh	w0, [x20, #8]
	ldr	w8, [x20, #36]
	str	w8, [x20, #4]
	ldr	x8, [x21, #16]
	ldr	w9, [x8]
	ldrh	w8, [x8, #4]
	strh	w8, [x20, #4]
	str	w9, [x20]
	ldr	x8, [x21, #16]
	ldrh	w9, [x8, #4]
	ldr	w8, [x8]
	str	w8, [x20, #36]
	strh	w9, [x20, #40]
	ldur	x8, [x20, #28]
	str	w19, [x8]
	ldur	x8, [x20, #20]
	ldr	w9, [x21, #8]
	str	w9, [x8]
	add	x0, x20, #44
	sub	x1, x22, #44
	bl	_bzero
	ldr	w0, [x21, #4]
	mov	x1, x20
	mov	x2, x22
	bl	_write
	cmp	x0, x22
	b.eq	LBB0_2
; %bb.1:
	mov	x2, x0
Lloh3:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x22
	bl	_logmsg
LBB0_2:
Lloh8:
	adrp	x8, _verbose@GOTPAGE
Lloh9:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	ldrsw	x21, [x21]
	ldr	w0, [x20, #12]
	bl	_eatoa
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
	mov	x0, x19
	bl	_ntohl
	bl	_intoa
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	bl	_logmsg
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_REVARP_REPLY,4,2               ; @REVARP_REPLY
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write: only %d of %d bytes written"

	.comm	_verbose,8,3                    ; @verbose
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"%s %s at %s REPLIED"

	.comm	_ETHERTYPE_REVARP,4,2           ; @ETHERTYPE_REVARP
	.no_dead_strip	_rarp_reply
.subsections_via_symbols
