	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_host_v4                        ## -- Begin function host_v4
	.p2align	4, 0x90
_host_v4:                               ## @host_v4
	.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	%rdi, %rbx
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	movq	_AF_INET@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rsi
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	$4, %ecx
	callq	_inet_net_pton
	movl	%eax, %r14d
	cmpl	$-1, %eax
	je	LBB0_7
LBB0_4:
	movl	$1, %edi
	movl	$40, %esi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	movq	$0, 32(%rbx)
	movl	(%r15), %eax
	movl	%eax, 24(%rbx)
	movl	-32(%rbp), %eax
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_set_ipmask
	movq	$0, 8(%rbx)
	movq	%rbx, (%rbx)
	jmp	LBB0_8
LBB0_3:
	callq	_inet_pton
	movl	$32, %r14d
	cmpl	$1, %eax
	je	LBB0_4
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"address: calloc"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_host_v4                        ; -- Begin function host_v4
	.p2align	2
_host_v4:                               ; @host_v4
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	mov	x8, x0
Lloh0:
	adrp	x21, _AF_INET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AF_INET@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x2, sp, #8
	mov	x1, x19
	cbz	x8, LBB0_2
; %bb.1:
	mov	w3, #4
	bl	_inet_net_pton
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_4
	b	LBB0_7
LBB0_2:
	bl	_inet_pton
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.3:
	mov	w19, #32
LBB0_4:
	mov	w0, #1
	mov	w1, #40
	bl	_calloc
	mov	x20, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
	str	xzr, [x20, #32]
	ldr	w8, [x21]
	str	w8, [x20, #24]
	ldr	w8, [sp, #8]
	ldr	x9, [x20, #16]
	str	w8, [x9]
	mov	x0, x20
	mov	x1, x19
	bl	_set_ipmask
	stp	x20, xzr, [x20]
	b	LBB0_8
LBB0_7:
	mov	x20, #0
LBB0_8:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"address: calloc"

.subsections_via_symbols
