	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_packet
_send_packet:                           ## @send_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	$1, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_DROPPACKETn
	movq	_peer_sock@GOTPCREL(%rip), %r8
	movl	(%r8), %r9d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_sendto
	cmpl	%ebx, %eax
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	callq	_ntohs
	movl	%eax, %edi
	callq	_packettype
	movq	%r15, %rbx
	movl	%eax, %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_strerror
	movl	%eax, (%rsp)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	movq	%rbx, %r15
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_tftp_log
	movl	%r14d, %edi
	callq	_sleep
	cmpl	$32, %r14d
	setb	%cl
	shll	%cl, %r14d
	incl	%r13d
	cmpl	$12, %r13d
	jne	LBB0_1
## %bb.6:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_tftp_log
	movl	$1, %r14d
	jmp	LBB0_7
LBB0_2:
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.4:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r15), %edi
	callq	_ntohs
	movl	%eax, %edi
	callq	_packettype
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%r12d, %edi
	movl	%eax, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_tftp_log
	jmp	LBB0_7
LBB0_3:
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send_packet"

	.comm	_peer_sock,4,2                  ## @peer_sock
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.1:                               ## @.str.1
	.asciz	"%s block %d, attempt %d successful"

L_.str.2:                               ## @.str.2
	.asciz	"%s block %d, attempt %d failed (Error %d: %s)"

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"send_packet: %s"

	.no_dead_strip	_send_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_packet
_send_packet:                           ; @send_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	mov	w26, #0
	mov	w23, #1
Lloh0:
	adrp	x25, _peer_sock@GOTPAGE
Lloh1:
	ldr	x25, [x25, _peer_sock@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_DROPPACKETn
	ldr	w5, [x25]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	mov	x4, x25
	bl	_sendto
	cmp	w0, w21
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh4:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh6:
	ldr	w27, [x8]
	ldr	w0, [x20]
	bl	_ntohs
	bl	_packettype
	mov	x28, x0
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w24, [x8]
	mov	x0, x24
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp, #16]
	stp	x19, x26, [sp]
	mov	x0, x27
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x28
	bl	_tftp_log
	mov	x0, x23
	bl	_sleep
	cmp	w23, #32
	cset	w8, lo
	lsl	w23, w23, w8
	add	w26, w26, #1
	cmp	w26, #12
	b.ne	LBB0_1
; %bb.3:
Lloh12:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_tftp_log
	mov	w0, #1
	b	LBB0_7
LBB0_4:
	cbz	w26, LBB0_6
; %bb.5:
Lloh20:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh22:
	ldr	w21, [x8]
	ldr	w0, [x20]
	bl	_ntohs
	bl	_packettype
	mov	x2, x0
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	stp	x19, x26, [sp]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_tftp_log
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send_packet"

	.comm	_peer_sock,4,2                  ; @peer_sock
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.1:                               ; @.str.1
	.asciz	"%s block %d, attempt %d successful"

l_.str.2:                               ; @.str.2
	.asciz	"%s block %d, attempt %d failed (Error %d: %s)"

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"send_packet: %s"

	.no_dead_strip	_send_packet
.subsections_via_symbols
