	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_my_ipv4                    ## -- Begin function get_my_ipv4
	.p2align	4, 0x90
_get_my_ipv4:                           ## @get_my_ipv4
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-64(%rbp), %rdi
	callq	_getifaddrs
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movq	-64(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.4:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$-1, %r12d
	movq	_AF_INET@GOTPCREL(%rip), %r15
	leaq	L_.str.1(%rip), %r14
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	movl	$2, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_ntohl
	movl	%eax, %r13d
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_ntohl
	movl	%r13d, %ecx
	andl	$-16777216, %ecx                ## imm = 0xFF000000
	cmpl	$167772160, %ecx                ## imm = 0xA000000
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r12d, %eax
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r12d
	jmp	LBB0_10
LBB0_2:
	movl	$-1, %r12d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_11:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	shrl	$24, %edx
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %ecx
	movzbl	%bh, %eax
	movl	%eax, %r8d
	movzbl	%bl, %r9d
	notl	%r12d
	bsrl	%r12d, %r10d
	xorl	$31, %r10d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	leaq	L_.str.3(%rip), %rax
	cmovneq	%rsi, %rax
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	pushq	%rax
	pushq	%r10
	callq	_vkprintf
	addq	$16, %rsp
	movq	-64(%rbp), %rdi
	callq	_freeifaddrs
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getifaddrs()"

	.comm	_AF_INET,8,3                    ## @AF_INET
L_.str.1:                               ## @.str.1
	.asciz	"lo"

L_.str.2:                               ## @.str.2
	.asciz	"using main IP %d.%d.%d.%d/%d at interface %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"(none)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_my_ipv4                    ; -- Begin function get_my_ipv4
	.p2align	2
_get_my_ipv4:                           ; @get_my_ipv4
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	add	x0, sp, #8
	bl	_getifaddrs
	tbnz	x0, #63, LBB0_11
; %bb.1:
	ldr	x24, [sp, #8]
	cbz	x24, LBB0_8
; %bb.2:
	mov	x22, #0
	mov	w19, #0
	mov	w23, #-1
Lloh0:
	adrp	x25, _AF_INET@GOTPAGE
Lloh1:
	ldr	x25, [x25, _AF_INET@GOTPAGEOFF]
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x24, [x24, #24]
	cbz	x24, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #16]
	ldr	x8, [x8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x24]
	mov	x1, x20
	mov	w2, #2
	bl	_strncmp
	cbz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24, #16]
	ldr	w0, [x8]
	bl	_ntohl
	mov	x21, x0
	ldr	x8, [x24, #8]
	ldr	w0, [x8]
	bl	_ntohl
	lsr	w8, w21, #24
	cmp	w8, #10
	ccmp	w0, w23, #2, eq
	b.hs	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x24]
	mov	x19, x21
	mov	x23, x0
	b	LBB0_3
LBB0_8:
	mov	w19, #0
	mov	x22, #0
	mov	w23, #-1
LBB0_9:
	lsr	w2, w19, #24
	ubfx	w3, w19, #16, #8
	ubfx	w4, w19, #8, #8
	and	w5, w19, #0xff
	mvn	w8, w23
	clz	w6, w8
Lloh4:
	adrp	x8, l_.str.3@PAGE
Lloh5:
	add	x8, x8, l_.str.3@PAGEOFF
	cmp	x22, #0
	csel	x7, x8, x22, eq
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	ldr	x0, [sp, #8]
	bl	_freeifaddrs
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	mov	w19, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getifaddrs()"

	.comm	_AF_INET,8,3                    ; @AF_INET
l_.str.1:                               ; @.str.1
	.asciz	"lo"

l_.str.2:                               ; @.str.2
	.asciz	"using main IP %d.%d.%d.%d/%d at interface %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"(none)"

.subsections_via_symbols
