	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tftp_conn_complete
_tftp_conn_complete:                    ## @tftp_conn_complete
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$0, (%rdi)
	je	LBB0_1
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	_working_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SERVER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_port@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
LBB0_4:
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	callq	_tftp_conn_close_handles
	movq	_completed_connections@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_list_insert                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_working_mode,8,3               ## @working_mode
	.comm	_SERVER,8,3                     ## @SERVER
	.comm	_port,8,3                       ## @port
	.comm	_completed_connections,4,2      ## @completed_connections
	.no_dead_strip	_tftp_conn_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tftp_conn_complete
_tftp_conn_complete:                    ; @tftp_conn_complete
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
Lloh0:
	adrp	x8, _working_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _working_mode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SERVER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SERVER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x9, [x19, #8]
	ldr	x8, [x9, x8, lsl #3]
Lloh6:
	adrp	x9, _port@GOTPAGE
Lloh7:
	ldr	x9, [x9, _port@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_1
LBB0_4:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_tftp_conn_close_handles
Lloh9:
	adrp	x2, _completed_connections@GOTPAGE
Lloh10:
	ldr	x2, [x2, _completed_connections@GOTPAGEOFF]
	ldr	w0, [x2]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_list_insert
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_working_mode,8,3               ; @working_mode
	.comm	_SERVER,8,3                     ; @SERVER
	.comm	_port,8,3                       ; @port
	.comm	_completed_connections,4,2      ; @completed_connections
	.no_dead_strip	_tftp_conn_complete
.subsections_via_symbols
