	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udp_Sendto
_udp_Sendto:                            ## @udp_Sendto
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	callq	_device2udp
	movq	%rax, %rbx
	cmpl	$129, (%rax)
	movl	(%r12), %edi
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_write
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %r8
	addq	$4, %r8
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movl	$4, %r9d
	callq	_sendto
LBB0_3:
	movl	(%rbx), %ecx
	movq	_UDP_MAYBEUNCONNECTED@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_7
## %bb.4:
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_EISCONN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.8:
	movl	$129, (%rbx)
	movl	(%r12), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write                          ## TAILCALL
LBB0_6:
	movl	$128, (%rbx)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UDP_MAYBEUNCONNECTED,4,2       ## @UDP_MAYBEUNCONNECTED
	.comm	_errno,8,3                      ## @errno
	.comm	_EISCONN,8,3                    ## @EISCONN
	.no_dead_strip	_udp_Sendto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udp_Sendto
_udp_Sendto:                            ; @udp_Sendto
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_device2udp
	mov	x22, x0
	ldr	w8, [x0]
	ldr	w0, [x21]
	cmp	w8, #129
	b.ne	LBB0_2
; %bb.1:
	mov	x1, x20
	mov	x2, x19
	bl	_write
	b	LBB0_3
LBB0_2:
	add	x4, x22, #4
	mov	x1, x20
	mov	x2, x19
	mov	w3, #0
	mov	w5, #4
	bl	_sendto
LBB0_3:
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _UDP_MAYBEUNCONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UDP_MAYBEUNCONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.4:
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _EISCONN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EISCONN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	w8, #129
	str	w8, [x22]
	ldr	w0, [x21]
	mov	x1, x20
	mov	x2, x19
	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
	b	_write
LBB0_7:
	mov	w8, #128
	str	w8, [x22]
LBB0_8:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_UDP_MAYBEUNCONNECTED,4,2       ; @UDP_MAYBEUNCONNECTED
	.comm	_errno,8,3                      ; @errno
	.comm	_EISCONN,8,3                    ; @EISCONN
	.no_dead_strip	_udp_Sendto
.subsections_via_symbols
