	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_send_error                     ## -- Begin function send_error
	.p2align	4, 0x90
_send_error:                            ## @send_error
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	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
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_tftp_log
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_DROPPACKET
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%r14d, %edi
	callq	_htons
	movq	_errmsgs@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	$-4, %rbx
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %eax
	addq	$8, %rbx
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r14d, %eax
	jne	LBB0_3
LBB0_5:
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movl	(%rbx), %esi
	jmp	LBB0_8
LBB0_7:
	addl	$-100, %r14d
	movl	%r14d, %edi
	callq	_strerror
	movl	%eax, %esi
	movl	%eax, (%rbx)
LBB0_8:
	callq	_strcpy
	movl	(%rbx), %edi
	callq	_strlen
	ud2
	.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 ERROR %d"

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

	.comm	_ERROR,8,3                      ## @ERROR
	.comm	_errmsgs,8,3                    ## @errmsgs
	.comm	_EUNDEF,8,3                     ## @EUNDEF
	.comm	_peer_sock,4,2                  ## @peer_sock
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.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_error                     ; -- Begin function send_error
	.p2align	2
_send_error:                            ; @send_error
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DEBUG_PACKETS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEBUG_PACKETS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _LOG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LOG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_tftp_log
LBB0_2:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DROPPACKET
Lloh13:
	adrp	x8, _ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_htons
	mov	x0, x19
	bl	_htons
Lloh16:
	adrp	x8, _errmsgs@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errmsgs@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	sub	x20, x8, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #4]
	add	x20, x20, #8
	tbnz	w8, #31, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, w19
	b.ne	LBB0_3
LBB0_5:
	tbnz	w8, #31, LBB0_7
; %bb.6:
	ldr	w1, [x20]
	b	LBB0_8
LBB0_7:
	sub	w0, w19, #100
	bl	_strerror
	mov	x1, x0
	str	w0, [x20]
LBB0_8:
	bl	_strcpy
	ldr	w0, [x20]
	bl	_strlen
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.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 ERROR %d"

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

	.comm	_ERROR,8,3                      ; @ERROR
	.comm	_errmsgs,8,3                    ; @errmsgs
	.comm	_EUNDEF,8,3                     ; @EUNDEF
	.comm	_peer_sock,4,2                  ; @peer_sock
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
