	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inet_getname                   ## -- Begin function inet_getname
	.p2align	4, 0x90
_inet_getname:                          ## @inet_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_inet_sk
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r15)
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.1:
	movq	32(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.2:
	movb	(%rbx), %cl
	movl	$1, %esi
	shll	%cl, %esi
	cmpl	$1, %r12d
	jne	LBB0_5
## %bb.3:
	movq	_TCPF_CLOSE@GOTPCREL(%rip), %rcx
	movq	_TCPF_SYN_SENT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rcx), %edi
	andl	%esi, %edi
	je	LBB0_5
LBB0_4:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.7:
	movq	8(%rax), %rcx
LBB0_8:
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	jmp	LBB0_9
LBB0_5:
	movq	%rdx, 16(%r15)
	movq	24(%rax), %rcx
LBB0_9:
	movq	%rcx, 8(%r15)
	movl	(%r15), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$32, (%r14)
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_TCPF_CLOSE,4,2                 ## @TCPF_CLOSE
	.comm	_TCPF_SYN_SENT,4,2              ## @TCPF_SYN_SENT
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inet_getname                   ; -- Begin function inet_getname
	.p2align	2
_inet_getname:                          ; @inet_getname
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	ldr	x21, [x0]
	mov	x0, x21
	bl	_inet_sk
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	cbz	w22, LBB0_5
; %bb.1:
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_4
; %bb.2:
	cmp	w22, #1
	b.ne	LBB0_8
; %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_8
LBB0_4:
Lloh9:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_5:
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x0, #8]
LBB0_7:
	ldr	x9, [x0]
	str	x9, [x20, #16]
	b	LBB0_9
LBB0_8:
	str	x8, [x20, #16]
	ldr	x8, [x0, #24]
LBB0_9:
	str	x8, [x20, #8]
	ldr	w0, [x20]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w0, #0
	mov	w8, #32
	str	w8, [x19]
LBB0_10:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_TCPF_CLOSE,4,2                 ; @TCPF_CLOSE
	.comm	_TCPF_SYN_SENT,4,2              ; @TCPF_SYN_SENT
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
.subsections_via_symbols
