	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tftp_sent_data_packet
_tftp_sent_data_packet:                 ## @tftp_sent_data_packet
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_msg_out@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	addq	$16, %rdx
	callq	_tftp_block_read
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_tftp_data@GOTPCREL(%rip), %rcx
	movzbl	1(%rcx), %edx
	movq	(%r15), %rsi
	movl	%edx, (%rsi)
	movzbl	(%rcx), %ecx
	movl	%ecx, 4(%rsi)
	movzbl	%bh, %ecx
	movl	%ecx, 8(%rsi)
	movzbl	%bl, %ecx
	movl	%ecx, 12(%rsi)
	movl	%ebx, (%r14)
	movl	%eax, 4(%r14)
	addl	$4, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_tftp_undef@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tftp_store_error               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_msg_out,8,3                    ## @msg_out
	.comm	_tftp_undef,4,2                 ## @tftp_undef
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IO error: Read failed"

	.comm	_tftp_data,4,2                  ## @tftp_data
	.no_dead_strip	_tftp_sent_data_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tftp_sent_data_packet
_tftp_sent_data_packet:                 ; @tftp_sent_data_packet
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _msg_out@GOTPAGE
Lloh1:
	ldr	x21, [x21, _msg_out@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x2, x8, #16
	bl	_tftp_block_read
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _tftp_data@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tftp_data@GOTPAGEOFF]
	ldrb	w9, [x8, #1]
	ldr	x10, [x21]
	str	w9, [x10]
	ldrb	w8, [x8]
	ubfx	w9, w20, #8, #8
	stp	w8, w9, [x10, #4]
	and	w8, w20, #0xff
	str	w8, [x10, #12]
	stp	w20, w0, [x19]
	add	w0, w0, #4
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh4:
	adrp	x8, _tftp_undef@GOTPAGE
Lloh5:
	ldr	x8, [x8, _tftp_undef@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tftp_store_error
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_msg_out,8,3                    ; @msg_out
	.comm	_tftp_undef,4,2                 ; @tftp_undef
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IO error: Read failed"

	.comm	_tftp_data,4,2                  ; @tftp_data
	.no_dead_strip	_tftp_sent_data_packet
.subsections_via_symbols
