	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udp6_abort
_udp6_abort:                            ## @udp6_abort
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_udp_get_inpcbinfo
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_sotoinpcb
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	%rbx, %rdi
	callq	_INP_WLOCK
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_IN6_IS_ADDR_UNSPECIFIED
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_INP_HASH_WLOCK
	movq	%rbx, %rdi
	callq	_in6_pcbdisconnect
	movq	_in6addr_any@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%r15, %rdi
	callq	_INP_HASH_WUNLOCK
	movq	%r14, %rdi
	callq	_soisdisconnected
LBB0_2:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_INP_WUNLOCK                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"udp6_abort: inp == NULL"

	.comm	_in6addr_any,4,2                ## @in6addr_any
	.comm	_INP_IPV4,4,2                   ## @INP_IPV4
	.comm	_IPPROTO_UDP,8,3                ## @IPPROTO_UDP
	.comm	_IPPROTO_UDPLITE,8,3            ## @IPPROTO_UDPLITE
	.comm	_inetsw,8,3                     ## @inetsw
	.comm	_ip_protox,8,3                  ## @ip_protox
	.no_dead_strip	_udp6_abort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udp6_abort
_udp6_abort:                            ; @udp6_abort
	.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, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_udp_get_inpcbinfo
	mov	x21, x0
	mov	x0, x19
	bl	_sotoinpcb
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	mov	x0, x20
	bl	_INP_WLOCK
	add	x0, x20, #8
	bl	_IN6_IS_ADDR_UNSPECIFIED
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_INP_HASH_WLOCK
	mov	x0, x20
	bl	_in6_pcbdisconnect
Lloh2:
	adrp	x8, _in6addr_any@GOTPAGE
Lloh3:
	ldr	x8, [x8, _in6addr_any@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	mov	x0, x21
	bl	_INP_HASH_WUNLOCK
	mov	x0, x19
	bl	_soisdisconnected
LBB0_2:
	mov	x0, x20
	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	_INP_WUNLOCK
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"udp6_abort: inp == NULL"

	.comm	_in6addr_any,4,2                ; @in6addr_any
	.comm	_INP_IPV4,4,2                   ; @INP_IPV4
	.comm	_IPPROTO_UDP,8,3                ; @IPPROTO_UDP
	.comm	_IPPROTO_UDPLITE,8,3            ; @IPPROTO_UDPLITE
	.comm	_inetsw,8,3                     ; @inetsw
	.comm	_ip_protox,8,3                  ; @ip_protox
	.no_dead_strip	_udp6_abort
.subsections_via_symbols
