	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_send_oack                      ## -- Begin function send_oack
	.p2align	4, 0x90
_send_oack:                             ## @send_oack
	.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	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPKTSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r13, %r14
	movq	_debug@GOTPCREL(%rip), %rax
	movq	_DEBUG_PACKETS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_tftp_log
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	callq	_DROPPACKETn
	addq	$2, %r13
	movq	_OACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r14)
	movq	_options@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.3:
	addl	$-2, %ebx
	xorl	%r15d, %r15d
	leaq	L_.str.2(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rax,%r15), %rcx
	addq	$16, %r15
	testq	%rcx, %rcx
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax,%r15), %r9
	testq	%r9, %r9
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_snprintf
	incl	%eax
	subl	%eax, %ebx
	js	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cltq
	addq	%rax, %r13
	movq	(%r12), %rax
	jmp	LBB0_7
LBB0_8:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	subl	%esi, %r13d
	movq	_peer_sock@GOTPCREL(%rip), %r8
	movl	(%r8), %r9d
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_sendto
	cmpl	%r13d, %eax
	movl	$0, %eax
	je	LBB0_10
## %bb.9:
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_tftp_log
	movl	$1, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_tftp_log
	movl	$1, %edi
	callq	_exit
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPKTSIZE,4,2                 ## @MAXPKTSIZE
	.comm	_debug,4,2                      ## @debug
	.comm	_DEBUG_PACKETS,4,2              ## @DEBUG_PACKETS
	.comm	_LOG_DEBUG,4,2                  ## @LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sending OACK"

L_.str.1:                               ## @.str.1
	.asciz	"send_oack"

	.comm	_OACK,8,3                       ## @OACK
	.comm	_options,8,3                    ## @options
L_.str.2:                               ## @.str.2
	.asciz	"%s%c%s"

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.3:                               ## @.str.3
	.asciz	"oack: buffer overflow"

	.comm	_peer_sock,4,2                  ## @peer_sock
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
L_.str.4:                               ## @.str.4
	.asciz	"send_oack: %s"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_send_oack                      ; -- Begin function send_oack
	.p2align	2
_send_oack:                             ; @send_oack
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAXPKTSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPKTSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x8, _debug@GOTPAGE
Lloh9:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _DEBUG_PACKETS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DEBUG_PACKETS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh14:
	adrp	x8, _LOG_DEBUG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LOG_DEBUG@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_tftp_log
LBB0_2:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_DROPPACKETn
Lloh21:
	adrp	x8, _OACK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OACK@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_htons
	mov	x21, x20
	str	w0, [x21], #2
Lloh24:
	adrp	x24, _options@GOTPAGE
Lloh25:
	ldr	x24, [x24, _options@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x3, [x8]
	cbz	x3, LBB0_8
; %bb.3:
	mov	x25, #0
	sub	w22, w22, #2
Lloh26:
	adrp	x23, l_.str.2@PAGE
Lloh27:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x8, x25
	ldr	x3, [x9, #16]
	add	x25, x25, #16
	cbz	x3, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x8, x25
	ldr	x5, [x9, #8]
	cbz	x5, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	w4, #0
	bl	_snprintf
	add	w8, w0, #1
	subs	w22, w22, w8
	b.mi	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, w8, sxtw
	ldr	x8, [x24]
	b	LBB0_4
LBB0_8:
	sub	w21, w21, w20
Lloh28:
	adrp	x4, _peer_sock@GOTPAGE
Lloh29:
	ldr	x4, [x4, _peer_sock@GOTPAGEOFF]
	ldr	w5, [x4]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	bl	_sendto
	mov	x8, x0
	mov	w0, #0
	cmp	w8, w21
	b.eq	LBB0_10
; %bb.9:
Lloh30:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh32:
	ldr	w19, [x8]
Lloh33:
	adrp	x8, _errno@GOTPAGE
Lloh34:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_tftp_log
	add	sp, sp, #16
	mov	w0, #1
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.11:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh41:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
Lloh44:
	adrp	x1, l_.str.3@PAGE
Lloh45:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_tftp_log
	mov	w0, #1
	bl	_exit
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPKTSIZE,4,2                 ; @MAXPKTSIZE
	.comm	_debug,4,2                      ; @debug
	.comm	_DEBUG_PACKETS,4,2              ; @DEBUG_PACKETS
	.comm	_LOG_DEBUG,4,2                  ; @LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sending OACK"

l_.str.1:                               ; @.str.1
	.asciz	"send_oack"

	.comm	_OACK,8,3                       ; @OACK
	.comm	_options,8,3                    ; @options
l_.str.2:                               ; @.str.2
	.asciz	"%s%c%s"

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.3:                               ; @.str.3
	.asciz	"oack: buffer overflow"

	.comm	_peer_sock,4,2                  ; @peer_sock
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
l_.str.4:                               ; @.str.4
	.asciz	"send_oack: %s"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
