	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_sendto                     ## -- Begin function sys_sendto
	.p2align	4, 0x90
_sys_sendto:                            ## @sys_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movq	%rsi, %r13
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%r9d, -52(%rbp)
	callq	_sock_getfd
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	leal	1(%r15), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_user_read
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	__EFAULT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
LBB0_4:
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_5:
	movq	__EBADF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.7:
                                        ## kill: def $eax killed $eax killed $rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movslq	%r15d, %rax
	movb	$0, (%rbx,%rax)
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %r9
	pushq	%r14
	callq	_STRACE
	addq	$16, %rsp
	movl	%ebx, %edi
	callq	_sock_flags_to_real
	testl	%eax, %eax
	js	LBB0_12
## %bb.9:
	movl	%eax, %r12d
	testq	%r13, %r13
	je	LBB0_13
## %bb.10:
	leaq	-96(%rbp), %rbx
	leaq	-52(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_sockaddr_read
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_4
## %bb.11:
	movl	-52(%rbp), %r14d
	jmp	LBB0_14
LBB0_12:
	movq	__EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movq	%rbx, %r8
	movl	%r14d, %r9d
	callq	_sendto
	testq	%rax, %rax
	jns	LBB0_4
## %bb.15:
	xorl	%eax, %eax
	callq	_errno_map
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_4
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	__EBADF,4,2                     ## @_EBADF
	.comm	__EFAULT,4,2                    ## @_EFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sendto(%d, \"%.100s\", %d, %d, 0x%x, %d)"

	.comm	__EINVAL,4,2                    ## @_EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_sendto                     ; -- Begin function sys_sendto
	.p2align	2
_sys_sendto:                            ; @sys_sendto
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x5
	mov	x22, x4
	mov	x24, x3
	mov	x19, x2
	mov	x26, x1
	mov	x25, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stur	w5, [x29, #-92]
	bl	_sock_getfd
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	mov	x27, sp
	add	w8, w19, #1
	mov	x9, x8
Lloh3:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh4:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	mov	x0, x26
	mov	x1, x23
	mov	x2, x19
	bl	_user_read
	cbz	x0, LBB0_8
; %bb.2:
Lloh5:
	adrp	x8, __EFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, __EFAULT@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
LBB0_4:
	mov	sp, x27
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, __EBADF@GOTPAGE
Lloh8:
	ldr	x8, [x8, __EBADF@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_6:
	ldur	x8, [x29, #-88]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.7:
                                        ; kill: def $w0 killed $w0 killed $x0
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	strb	wzr, [x23, w19, sxtw]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	mov	x2, x23
	mov	x3, x19
	mov	x4, x24
	mov	x5, x22
	mov	x6, x20
	bl	_STRACE
	mov	x0, x24
	bl	_sock_flags_to_real
	tbnz	w0, #31, LBB0_12
; %bb.9:
	mov	x24, x0
	cbz	x22, LBB0_13
; %bb.10:
	sub	x1, x29, #96
	sub	x2, x29, #92
	mov	x0, x22
	bl	_sockaddr_read
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_4
; %bb.11:
	sub	x4, x29, #96
	ldur	w20, [x29, #-92]
	b	LBB0_14
LBB0_12:
Lloh15:
	adrp	x8, __EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_13:
	mov	x4, #0
LBB0_14:
	ldr	w0, [x21]
	mov	x1, x23
	mov	x2, x19
	mov	x3, x24
	mov	x5, x20
	bl	_sendto
	tbz	x0, #63, LBB0_4
; %bb.15:
	bl	_errno_map
                                        ; kill: def $w0 killed $w0 def $x0
	b	LBB0_4
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	__EBADF,4,2                     ; @_EBADF
	.comm	__EFAULT,4,2                    ; @_EFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sendto(%d, \"%.100s\", %d, %d, 0x%x, %d)"

	.comm	__EINVAL,4,2                    ; @_EINVAL
.subsections_via_symbols
