	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_connection_upload_tftp         ## -- Begin function connection_upload_tftp
	.p2align	4, 0x90
_connection_upload_tftp:                ## @connection_upload_tftp
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %r15d
	movl	4(%rdi), %r12d
	movq	_TOKEN_RESPONSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movl	%r12d, %edi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_util_memsearch
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %esi
	movl	$17, %ecx
	callq	_util_memsearch
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.4:
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %esi
	movl	$7, %ecx
	callq	_util_memsearch
	cmpl	$-1, %eax
	je	LBB0_6
LBB0_2:
	negl	%ebx
	jmp	LBB0_7
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movl	4(%r14), %edi
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %esi
	movl	$14, %ecx
	callq	_util_memsearch
	movl	%ebx, %ecx
	negl	%ecx
	cmpl	$-1, %eax
	cmovnel	%ecx, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TOKEN_RESPONSE,8,3             ## @TOKEN_RESPONSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Permission denied"

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

L_.str.2:                               ## @.str.2
	.asciz	"illegal option"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_connection_upload_tftp         ; -- Begin function connection_upload_tftp
	.p2align	2
_connection_upload_tftp:                ; @connection_upload_tftp
	.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
	ldp	w21, w20, [x0]
Lloh0:
	adrp	x8, _TOKEN_RESPONSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TOKEN_RESPONSE@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	mov	x0, x22
	bl	_strlen
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_util_memsearch
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x20
	mov	w3, #17
	bl	_util_memsearch
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	w3, #7
	bl	_util_memsearch
	cmn	w0, #1
	b.eq	LBB0_5
LBB0_3:
	neg	w0, w20
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	w0, [x19, #4]
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x20
	mov	w3, #14
	bl	_util_memsearch
	cmn	w0, #1
	cneg	w0, w20, ne
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TOKEN_RESPONSE,8,3             ; @TOKEN_RESPONSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Permission denied"

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

l_.str.2:                               ; @.str.2
	.asciz	"illegal option"

.subsections_via_symbols
