	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inet6_getname                  ## -- Begin function inet6_getname
	.p2align	4, 0x90
_inet6_getname:                         ## @inet6_getname
	.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
	movl	%ecx, %r14d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_inet_sk
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_inet6_sk
	movq	%rax, %r12
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	$0, (%rbx)
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.1:
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movb	(%r15), %cl
	movl	$1, %edx
	shll	%cl, %edx
	cmpl	$1, %r14d
	jne	LBB0_5
## %bb.4:
	movq	_TCPF_CLOSE@GOTPCREL(%rip), %rcx
	movq	_TCPF_SYN_SENT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rcx), %esi
	andl	%edx, %esi
	je	LBB0_5
LBB0_2:
	movq	_ENOTCONN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_7:
	movq	%r12, %rdi
	callq	_ipv6_addr_any
	leaq	8(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	addq	$4, %r12
LBB0_9:
	movq	%r12, %rsi
	callq	_ipv6_addr_copy
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%r13), %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_10
LBB0_5:
	movq	%rax, 16(%rbx)
	leaq	8(%rbx), %rdi
	movq	%r12, %rsi
	addq	$24, %rsi
	callq	_ipv6_addr_copy
	cmpq	$0, 16(%r12)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_10
## %bb.6:
	movq	8(%r12), %rax
	movq	%rax, 24(%rbx)
LBB0_10:
	leaq	8(%rbx), %rdi
	callq	_ipv6_addr_type
	movq	_IPV6_ADDR_LINKLOCAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	8(%r15), %rax
	movq	%rax, (%rbx)
LBB0_12:
	movl	$40, (%r14)
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_TCPF_CLOSE,4,2                 ## @TCPF_CLOSE
	.comm	_TCPF_SYN_SENT,4,2              ## @TCPF_SYN_SENT
	.comm	_IPV6_ADDR_LINKLOCAL,4,2        ## @IPV6_ADDR_LINKLOCAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inet6_getname                  ; -- Begin function inet6_getname
	.p2align	2
_inet6_getname:                         ; @inet6_getname
	.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	x24, x3
	mov	x19, x2
	mov	x20, x1
	ldr	x21, [x0]
	mov	x0, x21
	bl	_inet_sk
	mov	x23, x0
	mov	x0, x21
	bl	_inet6_sk
	mov	x22, x0
Lloh0:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	str	xzr, [x20, #24]
	str	xzr, [x20]
	cbz	w24, LBB0_5
; %bb.1:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_4
; %bb.2:
	cmp	w24, #1
	b.ne	LBB0_7
; %bb.3:
	ldr	w9, [x21]
	mov	w10, #1
	lsl	w9, w10, w9
Lloh3:
	adrp	x10, _TCPF_CLOSE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TCPF_CLOSE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _TCPF_SYN_SENT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _TCPF_SYN_SENT@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w10, w11, w10
	and	w9, w10, w9
	cbz	w9, LBB0_7
LBB0_4:
Lloh9:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_5:
	mov	x0, x22
	bl	_ipv6_addr_any
	mov	x8, x0
	add	x0, x20, #8
	cbz	x8, LBB0_9
; %bb.6:
	add	x1, x22, #4
	b	LBB0_10
LBB0_7:
	str	x8, [x20, #16]
	add	x0, x20, #8
	add	x1, x22, #24
	bl	_ipv6_addr_copy
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	x8, [x22, #8]
	str	x8, [x20, #24]
	b	LBB0_11
LBB0_9:
	mov	x1, x22
LBB0_10:
	bl	_ipv6_addr_copy
	ldr	x8, [x23]
	str	x8, [x20, #16]
LBB0_11:
	add	x0, x20, #8
	bl	_ipv6_addr_type
Lloh12:
	adrp	x8, _IPV6_ADDR_LINKLOCAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IPV6_ADDR_LINKLOCAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.12:
	ldr	x8, [x21, #8]
	str	x8, [x20]
LBB0_13:
	mov	w0, #0
	mov	w8, #40
	str	w8, [x19]
LBB0_14:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_TCPF_CLOSE,4,2                 ; @TCPF_CLOSE
	.comm	_TCPF_SYN_SENT,4,2              ; @TCPF_SYN_SENT
	.comm	_IPV6_ADDR_LINKLOCAL,4,2        ; @IPV6_ADDR_LINKLOCAL
.subsections_via_symbols
