	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tftp_send_message
_tftp_send_message:                     ## @tftp_send_message
	.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
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_tftp_udp_message_create
	movq	%rax, %rbx
	movl	16(%rax), %edi
	movl	16(%r14), %esi
	movl	$16, %edx
	callq	_memcpy
	movq	8(%r14), %rax
	movq	_working_mode@GOTPCREL(%rip), %r15
	movslq	(%r15), %rcx
	movl	$1, %edx
	subq	%rcx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_tftp_get_response_packet_type
	movq	_tftp_rrq@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%al
	movl	(%r15), %ecx
	movq	_CLIENT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	_port@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_2:
	movl	4(%r14), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_udp_queue_message
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_working_mode,4,2               ## @working_mode
	.comm	_tftp_rrq,8,3                   ## @tftp_rrq
	.comm	_CLIENT,4,2                     ## @CLIENT
	.comm	_port,8,3                       ## @port
	.no_dead_strip	_tftp_send_message
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tftp_send_message
_tftp_send_message:                     ; @tftp_send_message
	.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	x19, x0
	mov	x0, x1
	bl	_tftp_udp_message_create
	mov	x20, x0
	ldr	w0, [x0, #16]
	ldr	w1, [x19, #16]
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x21, _working_mode@GOTPAGE
Lloh1:
	ldr	x21, [x21, _working_mode@GOTPAGEOFF]
	ldrsw	x9, [x21]
	mov	w10, #1
	sub	x9, x10, x9
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [x20, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	bl	_tftp_get_response_packet_type
Lloh2:
	adrp	x8, _tftp_rrq@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tftp_rrq@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _CLIENT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CLIENT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ccmp	w8, w9, #0, eq
	cset	w0, eq
	bl	_assert
Lloh8:
	adrp	x8, _port@GOTPAGE
Lloh9:
	ldr	x8, [x8, _port@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x20, #8]
LBB0_2:
	ldr	w8, [x19, #4]
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_udp_queue_message
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_working_mode,4,2               ; @working_mode
	.comm	_tftp_rrq,8,3                   ; @tftp_rrq
	.comm	_CLIENT,4,2                     ; @CLIENT
	.comm	_port,8,3                       ; @port
	.no_dead_strip	_tftp_send_message
.subsections_via_symbols
