	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rarp_bootable
_rarp_bootable:                         ## @rarp_bootable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	callq	_ntohl
	leaq	L_.str(%rip), %rsi
	leaq	-33(%rbp), %rdi
	movl	%eax, %edx
	callq	_sprintf
	movq	_rarp_bootable.dd(%rip), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_rewinddir
	jmp	LBB0_8
LBB0_2:
	movq	_tftp_dir@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_chdir
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %rbx
	movq	%rax, _rarp_bootable.dd(%rip)
LBB0_8:
	leaq	-33(%rbp), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.12:
	movl	$1, %eax
	jmp	LBB0_13
LBB0_10:
	xorl	%eax, %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
LBB0_3:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_logmsg
	jmp	LBB0_6
LBB0_5:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_logmsg
LBB0_6:
	movq	_pidfile_fh@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pidfile_remove
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_rarp_bootable.dd,8,3 ## @rarp_bootable.dd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%08X"

	.comm	_tftp_dir,4,2                   ## @tftp_dir
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.1:                               ## @.str.1
	.asciz	"chdir: %s: %m"

L_.str.2:                               ## @.str.2
	.asciz	"."

L_.str.3:                               ## @.str.3
	.asciz	"opendir: %m"

	.comm	_pidfile_fh,4,2                 ## @pidfile_fh
	.no_dead_strip	_rarp_bootable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rarp_bootable
_rarp_bootable:                         ; @rarp_bootable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_ntohl
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #15
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_sprintf
	adrp	x20, _rarp_bootable.dd@PAGE
	ldr	x19, [x20, _rarp_bootable.dd@PAGEOFF]
	cbz	x19, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_rewinddir
	b	LBB0_5
LBB0_2:
Lloh5:
	adrp	x19, _tftp_dir@GOTPAGE
Lloh6:
	ldr	x19, [x19, _tftp_dir@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_chdir
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.3:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_opendir
	cbz	x0, LBB0_12
; %bb.4:
	mov	x19, x0
	str	x0, [x20, _rarp_bootable.dd@PAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_readdir
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x0]
	add	x1, sp, #15
	mov	w2, #8
	bl	_strncmp
	cbnz	x0, LBB0_5
; %bb.7:
	mov	w0, #1
LBB0_8:
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	bl	___stack_chk_fail
LBB0_11:
Lloh12:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh17:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_13:
	bl	_logmsg
Lloh22:
	adrp	x8, _pidfile_fh@GOTPAGE
Lloh23:
	ldr	x8, [x8, _pidfile_fh@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_pidfile_remove
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_rarp_bootable.dd,8,3 ; @rarp_bootable.dd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%08X"

	.comm	_tftp_dir,4,2                   ; @tftp_dir
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.1:                               ; @.str.1
	.asciz	"chdir: %s: %m"

l_.str.2:                               ; @.str.2
	.asciz	"."

l_.str.3:                               ; @.str.3
	.asciz	"opendir: %m"

	.comm	_pidfile_fh,4,2                 ; @pidfile_fh
	.no_dead_strip	_rarp_bootable
.subsections_via_symbols
