	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sendpacket
_sendpacket:                            ## @sendpacket
	.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	%rbx
	subq	$1128, %rsp                     ## imm = 0x468
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rax
	movq	%rax, -1096(%rbp)
	leaq	-1092(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_IN6_IS_ADDR_LINKLOCAL
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_IN6_IS_ADDR_MULTICAST
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movl	-1096(%rbp), %r15d
LBB0_4:
	leaq	-1096(%rbp), %rax
	movq	%rax, -1104(%rbp)
	movabsq	$4294967304, %rax               ## imm = 0x100000008
	movq	%rax, -1144(%rbp)
	movq	_ripbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movl	%r14d, -64(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -1112(%rbp)
	movq	$0, -1120(%rbp)
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.6:
	leaq	-1088(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_memset
	movq	%rbx, -1128(%rbp)
	movl	$8, %edi
	callq	_CMSG_SPACE
	movq	%rax, -1136(%rbp)
	movl	$8, %edi
	callq	_CMSG_LEN
	movl	%eax, -1080(%rbp)
	movq	_IPPROTO_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -1084(%rbp)
	movq	_IPV6_PKTINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -1088(%rbp)
	movq	%rbx, %rdi
	callq	_CMSG_DATA
	movq	%rax, %rbx
	leaq	4(%rax), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%r15d, (%rbx)
	jmp	LBB0_7
LBB0_5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, -1136(%rbp)
LBB0_7:
	movq	_ripsock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-1144(%rbp), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_sendmsg
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	movq	_errno@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_trace
	movl	(%rbx), %ebx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	addq	$1128, %rsp                     ## imm = 0x468
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r15d, %r15d
	jmp	LBB0_4
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ripbuf,8,3                     ## @ripbuf
	.comm	_IPPROTO_IPV6,4,2               ## @IPPROTO_IPV6
	.comm	_IPV6_PKTINFO,4,2               ## @IPV6_PKTINFO
	.comm	_ripsock,4,2                    ## @ripsock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sendmsg: %s\n"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_sendpacket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function sendpacket
lCPI0_0:
	.long	8                               ; 0x8
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_sendpacket:                            ; @sendpacket
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -40
	.cfi_offset w28, -48
	sub	sp, sp, #1120
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x0]
	str	x8, [sp]
	mov	x8, sp
	orr	x20, x8, #0x4
	mov	x0, x20
	bl	_IN6_IS_ADDR_LINKLOCAL
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_IN6_IS_ADDR_MULTICAST
	cbz	x0, LBB0_10
LBB0_2:
	ldr	w20, [sp]
LBB0_3:
	mov	x8, sp
	str	x8, [sp, #48]
Lloh3:
	adrp	x8, _ripbuf@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ripbuf@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stur	x8, [x29, #-64]
	stur	w19, [x29, #-72]
	sub	x8, x29, #72
Lloh6:
	adrp	x9, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	stp	xzr, x8, [sp, #32]
	cbz	w20, LBB0_5
; %bb.4:
	add	x19, sp, #56
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #1024
	bl	_memset
	str	x19, [sp, #24]
	mov	w0, #8
	bl	_CMSG_SPACE
	str	x0, [sp, #16]
	mov	w0, #8
	bl	_CMSG_LEN
	str	w0, [sp, #64]
Lloh8:
	adrp	x8, _IPPROTO_IPV6@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IPPROTO_IPV6@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _IPV6_PKTINFO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IPV6_PKTINFO@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #56]
	add	x0, sp, #56
	bl	_CMSG_DATA
	mov	x19, x0
	add	x0, x0, #4
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	w20, [x19]
	b	LBB0_6
LBB0_5:
	stp	xzr, xzr, [sp, #16]
LBB0_6:
Lloh14:
	adrp	x8, _ripsock@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ripsock@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #0
	bl	_sendmsg
	mov	x8, x0
	mov	w0, #0
	tbz	x8, #63, LBB0_8
; %bb.7:
Lloh17:
	adrp	x19, _errno@GOTPAGE
Lloh18:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_strerror
	mov	x2, x0
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_trace
	ldr	w0, [x19]
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.9:
	add	sp, sp, #1120
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w20, #0
	b	LBB0_3
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ripbuf,8,3                     ; @ripbuf
	.comm	_IPPROTO_IPV6,4,2               ; @IPPROTO_IPV6
	.comm	_IPV6_PKTINFO,4,2               ; @IPV6_PKTINFO
	.comm	_ripsock,4,2                    ; @ripsock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sendmsg: %s\n"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_sendpacket
.subsections_via_symbols
