	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmon_start_download
_pmon_start_download:                   ## @pmon_start_download
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_tftp_in_use@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_tftp_localname@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	_tftp_file@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	_udp_in_use@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_4
## %bb.5:
	movq	_LOAD_CMD@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_perror_with_name               ## TAILCALL
LBB0_4:
	movq	_LOAD_CMD_UDP@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_mips_send_command
	leaq	L_.str.1(%rip), %rdi
	callq	_mips_expect
	cmpq	$0, (%rbx)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_mips_expect
	leaq	L_.str.4(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mips_expect                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tftp_in_use,8,3                ## @tftp_in_use
	.comm	_tftp_localname,4,2             ## @tftp_localname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

	.comm	_tftp_file,8,3                  ## @tftp_file
	.comm	_udp_in_use,8,3                 ## @udp_in_use
	.comm	_LOAD_CMD_UDP,4,2               ## @LOAD_CMD_UDP
	.comm	_LOAD_CMD,4,2                   ## @LOAD_CMD
L_.str.1:                               ## @.str.1
	.asciz	"Downloading from "

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

L_.str.3:                               ## @.str.3
	.asciz	"tty0"

L_.str.4:                               ## @.str.4
	.asciz	", ^C to abort\r\n"

	.no_dead_strip	_pmon_start_download
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmon_start_download
_pmon_start_download:                   ; @pmon_start_download
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _tftp_in_use@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tftp_in_use@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x19, _tftp_localname@GOTPAGE
Lloh4:
	ldr	x19, [x19, _tftp_localname@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
Lloh7:
	adrp	x8, _tftp_file@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tftp_file@GOTPAGEOFF]
Lloh9:
	str	x0, [x8]
	cbz	x0, LBB0_4
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh10:
	adrp	x19, _udp_in_use@GOTPAGE
Lloh11:
	ldr	x19, [x19, _udp_in_use@GOTPAGEOFF]
Lloh12:
	adrp	x8, _LOAD_CMD_UDP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOAD_CMD_UDP@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh14:
	adrp	x10, _LOAD_CMD@GOTPAGE
Lloh15:
	ldr	x10, [x10, _LOAD_CMD@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w0, [x8]
	mov	w1, #0
	bl	_mips_send_command
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_mips_expect
	ldr	x8, [x19]
Lloh18:
	adrp	x9, l_.str.2@PAGE
Lloh19:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh20:
	adrp	x10, l_.str.3@PAGE
Lloh21:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x8, #0
	csel	x0, x10, x9, eq
	bl	_mips_expect
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mips_expect
LBB0_4:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_perror_with_name
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_tftp_in_use,8,3                ; @tftp_in_use
	.comm	_tftp_localname,4,2             ; @tftp_localname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

	.comm	_tftp_file,8,3                  ; @tftp_file
	.comm	_udp_in_use,8,3                 ; @udp_in_use
	.comm	_LOAD_CMD_UDP,4,2               ; @LOAD_CMD_UDP
	.comm	_LOAD_CMD,4,2                   ; @LOAD_CMD
l_.str.1:                               ; @.str.1
	.asciz	"Downloading from "

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

l_.str.3:                               ; @.str.3
	.asciz	"tty0"

l_.str.4:                               ; @.str.4
	.asciz	", ^C to abort\r\n"

	.no_dead_strip	_pmon_start_download
.subsections_via_symbols
