	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %r12d
	movl	$48, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	%rbx, %rax
	addq	$40, %rax
	movq	%rax, 24(%rbx)
	movl	$8, (%rbx)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	%r12d, 40(%rbx)
	movl	%r15d, 44(%rbx)
	movq	16(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_3:
	movq	%rax, 16(%rbx)
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, 8(%rbx)
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	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	x21, x1
	mov	x22, x0
	mov	w0, #48
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	mov	x8, x20
	str	w22, [x8, #40]!
	mov	w9, #8
	str	w9, [x20]
Lloh0:
	adrp	x9, _AF_INET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x20, #32]
	str	w21, [x20, #44]
	ldr	x9, [x19, #16]
Lloh3:
	adrp	x10, _SOCK_STREAM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SOCK_STREAM@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, #0
	csel	x9, x10, x9, eq
	stp	x9, x8, [x20, #16]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	str	x8, [x20, #8]
LBB0_3:
	mov	x0, x20
	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
