	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malloc_ai
_malloc_ai:                             ## @malloc_ai
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movl	%edi, %r15d
	movl	$1, %edi
	movl	$48, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rcx
	addq	$40, %rcx
	movq	%rcx, 24(%rax)
	movl	$8, (%rax)
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movl	%r15d, 40(%rax)
	movl	%r14d, 44(%rax)
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.2:
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_3:
	movq	%rcx, 16(%rax)
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	movq	%rcx, 8(%rax)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_STREAM,8,3                ## @SOCK_STREAM
	.no_dead_strip	_malloc_ai
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malloc_ai
_malloc_ai:                             ; @malloc_ai
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w0, #1
	mov	w1, #48
	bl	_calloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x9, x0
	str	w21, [x9, #40]!
	mov	w8, #8
	str	w8, [x0]
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	str	w20, [x0, #44]
Lloh3:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
	ldp	x8, x11, [x19, #8]
	cmp	x11, #0
	csel	x10, x10, x11, eq
	stp	x10, x9, [x0, #16]
	cbz	x8, LBB0_3
; %bb.2:
	str	x8, [x0, #8]
LBB0_3:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_STREAM,8,3                ; @SOCK_STREAM
	.no_dead_strip	_malloc_ai
.subsections_via_symbols
