	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udp6_connect
_udp6_connect:                          ## @udp6_connect
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_udp_get_inpcbinfo
	movq	%rax, %r13
	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
	leaq	20(%rbx), %rdi
	callq	_IN6_IS_ADDR_UNSPECIFIED
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_prison_remote_ip6
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movl	4(%rbx), %ecx
	movq	_INP_IPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	andl	%ecx, %eax
	movq	_INP_IPV6@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_INP_HASH_WLOCK
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_in6_pcbconnect
	movl	%eax, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_INP_HASH_WUNLOCK
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_IN6_IS_ADDR_UNSPECIFIED
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	cmpq	$0, 8(%rbx)
	jne	LBB0_8
## %bb.7:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	jmp	LBB0_8
LBB0_1:
	movq	_EISCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_8:
	movq	%rbx, %rdi
	callq	_INP_WUNLOCK
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	callq	_soisconnected
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"udp6_connect: inp == NULL"

	.comm	_EISCONN,4,2                    ## @EISCONN
	.comm	_INP_IPV4,4,2                   ## @INP_IPV4
	.comm	_INP_IPV6,4,2                   ## @INP_IPV6
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IN6P_IPV6_V6ONLY,4,2           ## @IN6P_IPV6_V6ONLY
	.comm	_INADDR_ANY,8,3                 ## @INADDR_ANY
	.no_dead_strip	_udp6_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udp6_connect
_udp6_connect:                          ; @udp6_connect
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_udp_get_inpcbinfo
	mov	x23, x0
	mov	x0, x20
	bl	_sotoinpcb
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	mov	x0, x19
	bl	_INP_WLOCK
	add	x0, x19, #20
	bl	_IN6_IS_ADDR_UNSPECIFIED
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w0, [x22]
	mov	x1, x21
	bl	_prison_remote_ip6
	mov	x24, x0
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	w25, [x19, #4]
Lloh2:
	adrp	x8, _INP_IPV4@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INP_IPV4@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w25, w8
Lloh5:
	adrp	x9, _INP_IPV6@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INP_IPV6@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x23
	bl	_INP_HASH_WLOCK
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x21
	bl	_in6_pcbconnect
	mov	x24, x0
	mov	x0, x23
	bl	_INP_HASH_WUNLOCK
	cbz	w24, LBB0_8
; %bb.3:
	add	x0, x19, #16
	bl	_IN6_IS_ADDR_UNSPECIFIED
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_7
; %bb.5:
	str	w25, [x19, #4]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _EISCONN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EISCONN@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
LBB0_7:
	mov	x0, x19
	bl	_INP_WUNLOCK
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x20
	bl	_soisconnected
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"udp6_connect: inp == NULL"

	.comm	_EISCONN,4,2                    ; @EISCONN
	.comm	_INP_IPV4,4,2                   ; @INP_IPV4
	.comm	_INP_IPV6,4,2                   ; @INP_IPV6
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IN6P_IPV6_V6ONLY,4,2           ; @IN6P_IPV6_V6ONLY
	.comm	_INADDR_ANY,8,3                 ; @INADDR_ANY
	.no_dead_strip	_udp6_connect
.subsections_via_symbols
