	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tftp_udp_message_create
_tftp_udp_message_create:               ## @tftp_udp_message_create
	.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	%edi, %r14d
	xorl	%eax, %eax
	callq	_tftp_get_response_packet_type
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_switch.table.tftp_udp_message_create(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	incl	(%rax)
LBB0_2:
	movq	_tftp_udp_sent_packets@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_tftp_udp_sent_bytes@GOTPCREL(%rip), %rax
	addl	%r14d, (%rax)
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_4
## %bb.3:
	movq	_msg_out@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movslq	%r14d, %rsi
	addq	%rdi, %rsi
	callq	_hexdump
LBB0_4:
	movl	$16, %edi
	callq	_malloc
	movq	%rax, %rbx
	leaq	8(%rax), %rdi
	movq	_msg_out@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r14d, %edx
	callq	_rwm_create
	xorl	%edi, %edi
	cmpl	%r14d, %eax
	sete	%dil
	callq	_assert
	movq	$0, (%rbx)
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sent_rrq_packets,4,2           ## @sent_rrq_packets
	.comm	_sent_ack_packets,4,2           ## @sent_ack_packets
	.comm	_sent_data_packets,4,2          ## @sent_data_packets
	.comm	_sent_oack_packets,4,2          ## @sent_oack_packets
	.comm	_sent_error_packets,4,2         ## @sent_error_packets
	.comm	_tftp_udp_sent_packets,4,2      ## @tftp_udp_sent_packets
	.comm	_tftp_udp_sent_bytes,4,2        ## @tftp_udp_sent_bytes
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_msg_out,8,3                    ## @msg_out
	.no_dead_strip	_tftp_udp_message_create
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.tftp_udp_message_create
l_switch.table.tftp_udp_message_create:
	.quad	_sent_rrq_packets
	.quad	_sent_oack_packets
	.quad	_sent_error_packets
	.quad	_sent_data_packets
	.quad	_sent_ack_packets

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tftp_udp_message_create
_tftp_udp_message_create:               ; @tftp_udp_message_create
	.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
	bl	_tftp_get_response_packet_type
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.tftp_udp_message_create@PAGE
Lloh1:
	add	x9, x9, l_switch.table.tftp_udp_message_create@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_2:
Lloh2:
	adrp	x8, _tftp_udp_sent_packets@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tftp_udp_sent_packets@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh4:
	adrp	x8, _tftp_udp_sent_bytes@GOTPAGE
Lloh5:
	ldr	x8, [x8, _tftp_udp_sent_bytes@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w19
	str	w9, [x8]
Lloh6:
	adrp	x8, _verbosity@GOTPAGE
Lloh7:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x21, _msg_out@GOTPAGE
Lloh10:
	ldr	x21, [x21, _msg_out@GOTPAGEOFF]
	cmp	w8, #3
	b.lt	LBB0_4
; %bb.3:
	ldr	x0, [x21]
	add	x1, x0, w19, sxtw
	bl	_hexdump
LBB0_4:
	mov	w0, #16
	bl	_malloc
	mov	x20, x0
	add	x0, x0, #8
	ldr	x1, [x21]
	mov	x2, x19
	bl	_rwm_create
	cmp	w0, w19
	cset	w0, eq
	bl	_assert
	str	xzr, [x20]
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_sent_rrq_packets,4,2           ; @sent_rrq_packets
	.comm	_sent_ack_packets,4,2           ; @sent_ack_packets
	.comm	_sent_data_packets,4,2          ; @sent_data_packets
	.comm	_sent_oack_packets,4,2          ; @sent_oack_packets
	.comm	_sent_error_packets,4,2         ; @sent_error_packets
	.comm	_tftp_udp_sent_packets,4,2      ; @tftp_udp_sent_packets
	.comm	_tftp_udp_sent_bytes,4,2        ; @tftp_udp_sent_bytes
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_msg_out,8,3                    ; @msg_out
	.no_dead_strip	_tftp_udp_message_create
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.tftp_udp_message_create
l_switch.table.tftp_udp_message_create:
	.quad	_sent_rrq_packets
	.quad	_sent_oack_packets
	.quad	_sent_error_packets
	.quad	_sent_data_packets
	.quad	_sent_ack_packets

.subsections_via_symbols
