	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udp6_append
_udp6_append:                           ## @udp6_append
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_INP_LOCK_ASSERT
	movq	%r13, %rdi
	callq	_intoudpcb
	cmpq	$0, 8(%rax)
	je	LBB0_1
## %bb.16:
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_in_pcbref
	movq	%r13, %rdi
	callq	_INP_RUNLOCK
	movl	(%rbx), %r8d
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	*8(%rbx)
	movq	%r13, %rdi
	callq	_INP_RLOCK
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_in_pcbrele_rlocked             ## TAILCALL
LBB0_1:
	movq	$0, -48(%rbp)
	movq	_INP_CONTROLOPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	jne	LBB0_3
## %bb.2:
	movq	16(%r13), %rax
	movq	_SO_TIMESTAMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
LBB0_3:
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ip6_savecontrol
LBB0_4:
	movq	_INP_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r13)
	je	LBB0_10
## %bb.5:
	movq	_INP_ORIGDSTADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	je	LBB0_10
## %bb.6:
	leal	4(%r14), %edi
	movq	_IPV6_ORIGDSTADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IPPROTO_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$4, %esi
	callq	_sbcreatecontrol
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	-48(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movq	%rcx, (%rax)
LBB0_9:
	movq	%rax, -48(%rbp)
LBB0_10:
	addl	$4, %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_m_adj
	movq	16(%r13), %r12
	leaq	4(%r12), %rbx
	movq	%rbx, %rdi
	callq	_SOCKBUF_LOCK
	movq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_sbappendaddr_locked
	testq	%rax, %rax
	je	LBB0_11
## %bb.14:
	movq	%r12, %rdi
	callq	_sorwakeup_locked
	jmp	LBB0_15
LBB0_11:
	movq	%rbx, %rdi
	callq	_SOCKBUF_UNLOCK
	movq	%r15, %rdi
	callq	_m_freem
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_m_freem
LBB0_13:
	movq	_udps_fullsock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_UDPSTAT_INC
LBB0_15:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INP_CONTROLOPTS,4,2            ## @INP_CONTROLOPTS
	.comm	_SO_TIMESTAMP,4,2               ## @SO_TIMESTAMP
	.comm	_INP_IPV6,4,2                   ## @INP_IPV6
	.comm	_INP_ORIGDSTADDR,4,2            ## @INP_ORIGDSTADDR
	.comm	_IPV6_ORIGDSTADDR,4,2           ## @IPV6_ORIGDSTADDR
	.comm	_IPPROTO_IPV6,4,2               ## @IPPROTO_IPV6
	.comm	_udps_fullsock,4,2              ## @udps_fullsock
	.comm	_ipv6,4,2                       ## @ipv6
	.no_dead_strip	_udp6_append
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udp6_append
_udp6_append:                           ; @udp6_append
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	bl	_INP_LOCK_ASSERT
	mov	x0, x21
	bl	_intoudpcb
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x23, x0
	mov	x0, x21
	bl	_in_pcbref
	mov	x0, x21
	bl	_INP_RUNLOCK
	ldr	x8, [x23, #8]
	ldr	w4, [x23]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	blr	x8
	mov	x0, x21
	bl	_INP_RLOCK
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_in_pcbrele_rlocked
LBB0_2:
	str	xzr, [sp, #8]
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _INP_CONTROLOPTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INP_CONTROLOPTS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x21, #16]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SO_TIMESTAMP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SO_TIMESTAMP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_4:
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x19
	bl	_ip6_savecontrol
LBB0_5:
	ldr	w8, [x21, #4]
Lloh6:
	adrp	x9, _INP_IPV6@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INP_IPV6@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.6:
	ldr	w8, [x21, #8]
Lloh9:
	adrp	x9, _INP_ORIGDSTADDR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _INP_ORIGDSTADDR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.7:
	add	w0, w20, #4
Lloh12:
	adrp	x8, _IPV6_ORIGDSTADDR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IPV6_ORIGDSTADDR@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _IPPROTO_IPV6@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IPPROTO_IPV6@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	w1, #4
	bl	_sbcreatecontrol
	cbz	x0, LBB0_11
; %bb.8:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_10
; %bb.9:
	str	x8, [x0]
LBB0_10:
	str	x0, [sp, #8]
LBB0_11:
	add	w1, w22, #4
	mov	x0, x19
	bl	_m_adj
	ldr	x21, [x21, #16]
	add	x22, x21, #4
	mov	x0, x22
	bl	_SOCKBUF_LOCK
	ldr	x3, [sp, #8]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_sbappendaddr_locked
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x21
	bl	_sorwakeup_locked
	b	LBB0_16
LBB0_13:
	mov	x0, x22
	bl	_SOCKBUF_UNLOCK
	mov	x0, x19
	bl	_m_freem
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_15
; %bb.14:
	bl	_m_freem
LBB0_15:
Lloh18:
	adrp	x8, _udps_fullsock@GOTPAGE
Lloh19:
	ldr	x8, [x8, _udps_fullsock@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_UDPSTAT_INC
LBB0_16:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_INP_CONTROLOPTS,4,2            ; @INP_CONTROLOPTS
	.comm	_SO_TIMESTAMP,4,2               ; @SO_TIMESTAMP
	.comm	_INP_IPV6,4,2                   ; @INP_IPV6
	.comm	_INP_ORIGDSTADDR,4,2            ; @INP_ORIGDSTADDR
	.comm	_IPV6_ORIGDSTADDR,4,2           ; @IPV6_ORIGDSTADDR
	.comm	_IPPROTO_IPV6,4,2               ; @IPPROTO_IPV6
	.comm	_udps_fullsock,4,2              ; @udps_fullsock
	.comm	_ipv6,4,2                       ; @ipv6
	.no_dead_strip	_udp6_append
.subsections_via_symbols
