	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udp6_bind
_udp6_bind:                             ## @udp6_bind
	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_udp_get_inpcbinfo
	movq	%rax, %r14
	movq	%rbx, %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	%r14, %rdi
	callq	_INP_HASH_WLOCK
	movl	4(%rbx), %r13d
	movq	_INP_IPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%r13d, %eax
	movq	_INP_IPV6@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%rbx)
	movq	_IN6P_IPV6_V6ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_IN6_IS_ADDR_UNSPECIFIED
	movq	_INP_IPV4@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%rcx), %eax
	orl	%eax, 4(%rbx)
LBB0_3:
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_in6_pcbbind
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%r13d, 4(%rbx)
LBB0_5:
	movq	%r14, %rdi
	callq	_INP_HASH_WUNLOCK
	movq	%rbx, %rdi
	callq	_INP_WUNLOCK
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"udp6_bind: inp == NULL"

	.comm	_INP_IPV4,4,2                   ## @INP_IPV4
	.comm	_INP_IPV6,4,2                   ## @INP_IPV6
	.comm	_IN6P_IPV6_V6ONLY,4,2           ## @IN6P_IPV6_V6ONLY
	.no_dead_strip	_udp6_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udp6_bind
_udp6_bind:                             ; @udp6_bind
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_udp_get_inpcbinfo
	mov	x19, x0
	mov	x0, x20
	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
	mov	x0, x19
	bl	_INP_HASH_WLOCK
Lloh2:
	adrp	x24, _INP_IPV4@GOTPAGE
Lloh3:
	ldr	x24, [x24, _INP_IPV4@GOTPAGEOFF]
	ldr	w8, [x24]
	ldp	w9, w23, [x20]
	bic	w8, w23, w8
Lloh4:
	adrp	x10, _INP_IPV6@GOTPAGE
Lloh5:
	ldr	x10, [x10, _INP_IPV6@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x20, #4]
Lloh7:
	adrp	x8, _IN6P_IPV6_V6ONLY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IN6P_IPV6_V6ONLY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_IN6_IS_ADDR_UNSPECIFIED
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x24]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
LBB0_3:
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_in6_pcbbind
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.4:
	str	w23, [x20, #4]
LBB0_5:
	mov	x0, x19
	bl	_INP_HASH_WUNLOCK
	mov	x0, x20
	bl	_INP_WUNLOCK
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"udp6_bind: inp == NULL"

	.comm	_INP_IPV4,4,2                   ; @INP_IPV4
	.comm	_INP_IPV6,4,2                   ; @INP_IPV6
	.comm	_IN6P_IPV6_V6ONLY,4,2           ; @IN6P_IPV6_V6ONLY
	.no_dead_strip	_udp6_bind
.subsections_via_symbols
