	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inet6_bind                     ## -- Begin function inet6_bind
	.p2align	4, 0x90
_inet6_bind:                            ## @inet6_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_inet_sk
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_inet6_sk
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_sock_net
	movq	16(%r14), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.54:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_1:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	_SIN6_LEN_RFC2133@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jg	LBB0_2
## %bb.4:
	movl	%ebx, %r12d
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ipv6_addr_type
	movl	%eax, %r14d
	movq	_IPV6_ADDR_MULTICAST@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	(%r13), %rax
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_53
LBB0_6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edi
	callq	_ntohs
	movl	%eax, %ebx
	testw	%ax, %ax
	je	LBB0_10
## %bb.7:
	movq	_PROT_SOCK@GOTPCREL(%rip), %rax
	cmpw	(%rax), %bx
	jae	LBB0_10
## %bb.8:
	movq	_CAP_NET_BIND_SERVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_9
LBB0_10:
	movw	%bx, -46(%rbp)                  ## 2-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_lock_sock
	movq	%rbx, %rdi
	movq	(%rbx), %rax
	movq	_TCP_CLOSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	cmpq	$0, 16(%r15)
	je	LBB0_14
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_52:
	callq	_release_sock
LBB0_53:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_EACCES@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_14:
	movq	_IPV6_ADDR_MAPPED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_25
## %bb.15:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jne	LBB0_12
## %bb.16:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	24(%rax), %r14
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_inet_addr_type
	movl	%eax, %ebx
	movq	_sysctl_ip_nonlocal_bind@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_42
## %bb.17:
	movq	%r15, %rax
	cmpq	$0, 56(%r15)
	je	LBB0_19
## %bb.18:
	movq	%rax, %r15
	jmp	LBB0_42
LBB0_25:
	movq	_IPV6_ADDR_ANY@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_27
## %bb.26:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_42
LBB0_27:
	movq	_IPV6_ADDR_LINKLOCAL@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_28
## %bb.34:
	cmpl	$24, %r12d
	jb	LBB0_37
## %bb.35:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_37
## %bb.36:
	movq	%rax, 24(%rdi)
LBB0_37:
	movq	24(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.38:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_get_by_index
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_29
## %bb.39:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_28:
	xorl	%ebx, %ebx
LBB0_29:
	movq	_LOOPBACK4_IPV6@GOTPCREL(%rip), %rax
	movl	%r14d, %ecx
	movq	(%rax), %r14
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_IPV6_ADDR_MULTICAST@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_40
## %bb.30:
	cmpq	$0, 48(%r15)
	jne	LBB0_40
## %bb.31:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_ipv6_chk_addr
	testl	%eax, %eax
	je	LBB0_32
LBB0_40:
	testq	%rbx, %rbx
	je	LBB0_42
## %bb.41:
	movq	%rbx, %rdi
	callq	_dev_put
LBB0_42:
	movq	%r14, 40(%r15)
	movq	%r14, 32(%r15)
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	leaq	8(%r12), %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ipv6_addr_copy
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_IPV6_ADDR_MULTICAST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_44
## %bb.43:
	movq	%r12, %rdi
	addq	$4, %rdi
	movq	%rbx, %rsi
	callq	_ipv6_addr_copy
LBB0_44:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	16(%r14), %rax
	movzwl	-46(%rbp), %ebx                 ## 2-byte Folded Reload
	movzwl	%bx, %esi
	movq	%r14, %rdi
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_46
## %bb.45:
	movq	%r14, %rdi
	callq	_inet_reset_saddr
	movq	_EADDRINUSE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r14, %rdi
	jmp	LBB0_52
LBB0_46:
	movq	_IPV6_ADDR_ANY@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	je	LBB0_49
## %bb.47:
	movq	_SOCK_BINDADDR_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	movq	_IPV6_ADDR_MAPPED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_49
## %bb.48:
	movl	$1, (%r12)
LBB0_49:
	testw	%bx, %bx
	je	LBB0_51
## %bb.50:
	movq	_SOCK_BINDPORT_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
LBB0_51:
	movq	16(%r15), %rdi
	callq	_htons
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, 24(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_52
LBB0_19:
	cmpq	$0, 48(%rax)
	jne	LBB0_42
## %bb.20:
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	cmpq	%rax, %r14
	je	LBB0_42
## %bb.21:
	movq	_RTN_LOCAL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_42
## %bb.22:
	movq	_RTN_MULTICAST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_42
## %bb.23:
	movq	_RTN_BROADCAST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_24
	jmp	LBB0_42
LBB0_32:
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.33:
	movq	%rbx, %rdi
	callq	_dev_put
LBB0_24:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_52
	.cfi_endproc
                                        ## -- End function
	.comm	_SIN6_LEN_RFC2133,4,2           ## @SIN6_LEN_RFC2133
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IPV6_ADDR_MULTICAST,4,2        ## @IPV6_ADDR_MULTICAST
	.comm	_SOCK_STREAM,8,3                ## @SOCK_STREAM
	.comm	_PROT_SOCK,2,1                  ## @PROT_SOCK
	.comm	_CAP_NET_BIND_SERVICE,4,2       ## @CAP_NET_BIND_SERVICE
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_TCP_CLOSE,8,3                  ## @TCP_CLOSE
	.comm	_IPV6_ADDR_MAPPED,4,2           ## @IPV6_ADDR_MAPPED
	.comm	_sysctl_ip_nonlocal_bind,4,2    ## @sysctl_ip_nonlocal_bind
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.comm	_RTN_LOCAL,4,2                  ## @RTN_LOCAL
	.comm	_RTN_MULTICAST,4,2              ## @RTN_MULTICAST
	.comm	_RTN_BROADCAST,4,2              ## @RTN_BROADCAST
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_IPV6_ADDR_ANY,4,2              ## @IPV6_ADDR_ANY
	.comm	_IPV6_ADDR_LINKLOCAL,4,2        ## @IPV6_ADDR_LINKLOCAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_LOOPBACK4_IPV6,8,3             ## @LOOPBACK4_IPV6
	.comm	_EADDRINUSE,4,2                 ## @EADDRINUSE
	.comm	_SOCK_BINDADDR_LOCK,4,2         ## @SOCK_BINDADDR_LOCK
	.comm	_SOCK_BINDPORT_LOCK,4,2         ## @SOCK_BINDPORT_LOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inet6_bind                     ; -- Begin function inet6_bind
	.p2align	2
_inet6_bind:                            ; @inet6_bind
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x2
	mov	x22, x1
	mov	x24, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_inet_sk
	mov	x20, x0
	mov	x0, x19
	bl	_inet6_sk
	mov	x21, x0
	mov	x0, x19
	bl	_sock_net
	ldr	x8, [x19, #16]
	ldr	x3, [x8]
	cbz	x3, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x26
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	br	x3
LBB0_2:
Lloh0:
	adrp	x8, _SIN6_LEN_RFC2133@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIN6_LEN_RFC2133@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w26
	b.gt	LBB0_5
; %bb.3:
	mov	x25, x0
	mov	x0, x22
	bl	_ipv6_addr_type
	mov	x23, x0
Lloh3:
	adrp	x28, _IPV6_ADDR_MULTICAST@GOTPAGE
Lloh4:
	ldr	x28, [x28, _IPV6_ADDR_MULTICAST@GOTPAGEOFF]
	ldr	w8, [x28]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.4:
	ldr	x8, [x24]
Lloh5:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_7:
	ldr	w0, [x22, #16]
	bl	_ntohs
	mov	x24, x0
	cbz	w0, LBB0_10
; %bb.8:
Lloh10:
	adrp	x8, _PROT_SOCK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PROT_SOCK@GOTPAGEOFF]
	ldrh	w8, [x8]
	cmp	w24, w8
	b.hs	LBB0_10
; %bb.9:
Lloh12:
	adrp	x8, _CAP_NET_BIND_SERVICE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CAP_NET_BIND_SERVICE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_16
LBB0_10:
	mov	x0, x19
	bl	_lock_sock
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _TCP_CLOSE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TCP_CLOSE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_17
LBB0_12:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_14:
	mov	x0, x19
	bl	_release_sock
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh20:
	adrp	x8, _EACCES@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_6
LBB0_17:
Lloh22:
	adrp	x27, _IPV6_ADDR_MAPPED@GOTPAGE
Lloh23:
	ldr	x27, [x27, _IPV6_ADDR_MAPPED@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w23, w8
	b.ne	LBB0_26
; %bb.18:
	ldr	w8, [x21]
	cbnz	w8, LBB0_12
; %bb.19:
	ldr	x8, [x22]
	ldr	x26, [x8, #24]
	mov	x0, x25
	mov	x1, x26
	bl	_inet_addr_type
Lloh24:
	adrp	x8, _sysctl_ip_nonlocal_bind@GOTPAGE
Lloh25:
	ldr	x8, [x8, _sysctl_ip_nonlocal_bind@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cbnz	w8, LBB0_42
; %bb.20:
	ldr	x8, [x20, #56]
	cbnz	x8, LBB0_42
; %bb.21:
	ldr	x8, [x20, #48]
	cbnz	x8, LBB0_42
; %bb.22:
	mov	x25, x0
Lloh27:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_htonl
	cmp	x26, x0
	b.eq	LBB0_42
; %bb.23:
Lloh30:
	adrp	x8, _RTN_LOCAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RTN_LOCAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w25, w8
	b.eq	LBB0_42
; %bb.24:
Lloh33:
	adrp	x8, _RTN_MULTICAST@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RTN_MULTICAST@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w25, w8
	b.eq	LBB0_42
; %bb.25:
Lloh36:
	adrp	x8, _RTN_BROADCAST@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RTN_BROADCAST@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ne	LBB0_54
	b	LBB0_42
LBB0_26:
Lloh39:
	adrp	x8, _IPV6_ADDR_ANY@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IPV6_ADDR_ANY@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_28
; %bb.27:
	mov	x26, #0
	b	LBB0_42
LBB0_28:
Lloh42:
	adrp	x8, _IPV6_ADDR_LINKLOCAL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IPV6_ADDR_LINKLOCAL@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_35
; %bb.29:
	cmp	w26, #24
	b.lo	LBB0_32
; %bb.30:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_32
; %bb.31:
	str	x8, [x19, #24]
LBB0_32:
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_12
; %bb.33:
	mov	x0, x25
	bl	_dev_get_by_index
	mov	x27, x0
	cbnz	x0, LBB0_36
; %bb.34:
Lloh45:
	adrp	x8, _ENODEV@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_13
LBB0_35:
	mov	x27, #0
LBB0_36:
Lloh47:
	adrp	x8, _LOOPBACK4_IPV6@GOTPAGE
Lloh48:
	ldr	x8, [x8, _LOOPBACK4_IPV6@GOTPAGEOFF]
Lloh49:
	ldr	x26, [x8]
	ldr	w8, [x28]
	tst	w8, w23
	b.ne	LBB0_39
; %bb.37:
	ldr	x8, [x20, #48]
	cbnz	x8, LBB0_39
; %bb.38:
	mov	x0, x25
	mov	x1, x22
	mov	x2, x27
	mov	w3, #0
	bl	_ipv6_chk_addr
	cbz	w0, LBB0_52
LBB0_39:
	cbz	x27, LBB0_41
; %bb.40:
	mov	x0, x27
	bl	_dev_put
LBB0_41:
Lloh50:
	adrp	x27, _IPV6_ADDR_MAPPED@GOTPAGE
Lloh51:
	ldr	x27, [x27, _IPV6_ADDR_MAPPED@GOTPAGEOFF]
LBB0_42:
	stp	x26, x26, [x20, #32]
	add	x0, x21, #8
	mov	x1, x22
	bl	_ipv6_addr_copy
	ldr	w8, [x28]
	tst	w8, w23
	b.ne	LBB0_44
; %bb.43:
	add	x0, x21, #4
	mov	x1, x22
	bl	_ipv6_addr_copy
LBB0_44:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	x1, x24
	blr	x8
	cbz	x0, LBB0_46
; %bb.45:
	mov	x0, x19
	bl	_inet_reset_saddr
Lloh52:
	adrp	x8, _EADDRINUSE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _EADDRINUSE@GOTPAGEOFF]
	b	LBB0_13
LBB0_46:
Lloh54:
	adrp	x8, _IPV6_ADDR_ANY@GOTPAGE
Lloh55:
	ldr	x8, [x8, _IPV6_ADDR_ANY@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	cmp	w23, w8
	b.eq	LBB0_49
; %bb.47:
Lloh57:
	adrp	x8, _SOCK_BINDADDR_LOCK@GOTPAGE
Lloh58:
	ldr	x8, [x8, _SOCK_BINDADDR_LOCK@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldr	w8, [x27]
	cmp	w23, w8
	b.eq	LBB0_49
; %bb.48:
	mov	w8, #1
	str	w8, [x21]
LBB0_49:
	cbz	w24, LBB0_51
; %bb.50:
Lloh60:
	adrp	x8, _SOCK_BINDPORT_LOCK@GOTPAGE
Lloh61:
	ldr	x8, [x8, _SOCK_BINDPORT_LOCK@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_51:
	ldr	x0, [x20, #16]
	bl	_htons
	mov	w21, #0
	str	w0, [x20, #24]
	stp	xzr, xzr, [x20]
	b	LBB0_14
LBB0_52:
	cbz	x27, LBB0_54
; %bb.53:
	mov	x0, x27
	bl	_dev_put
LBB0_54:
Lloh63:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh64:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_SIN6_LEN_RFC2133,4,2           ; @SIN6_LEN_RFC2133
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPV6_ADDR_MULTICAST,4,2        ; @IPV6_ADDR_MULTICAST
	.comm	_SOCK_STREAM,8,3                ; @SOCK_STREAM
	.comm	_PROT_SOCK,2,1                  ; @PROT_SOCK
	.comm	_CAP_NET_BIND_SERVICE,4,2       ; @CAP_NET_BIND_SERVICE
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_TCP_CLOSE,8,3                  ; @TCP_CLOSE
	.comm	_IPV6_ADDR_MAPPED,4,2           ; @IPV6_ADDR_MAPPED
	.comm	_sysctl_ip_nonlocal_bind,4,2    ; @sysctl_ip_nonlocal_bind
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.comm	_RTN_LOCAL,4,2                  ; @RTN_LOCAL
	.comm	_RTN_MULTICAST,4,2              ; @RTN_MULTICAST
	.comm	_RTN_BROADCAST,4,2              ; @RTN_BROADCAST
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_IPV6_ADDR_ANY,4,2              ; @IPV6_ADDR_ANY
	.comm	_IPV6_ADDR_LINKLOCAL,4,2        ; @IPV6_ADDR_LINKLOCAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_LOOPBACK4_IPV6,8,3             ; @LOOPBACK4_IPV6
	.comm	_EADDRINUSE,4,2                 ; @EADDRINUSE
	.comm	_SOCK_BINDADDR_LOCK,4,2         ; @SOCK_BINDADDR_LOCK
	.comm	_SOCK_BINDPORT_LOCK,4,2         ; @SOCK_BINDPORT_LOCK
.subsections_via_symbols
