	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_interfaces
_show_interfaces:                       ## @show_interfaces
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	testl	%ebx, %ebx
	jle	LBB0_3
LBB0_4:
	movl	%ebx, %r12d
	shll	$4, %r12d
	movl	%r12d, %edi
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_err
LBB0_6:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r15d
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_8:
	movl	%r12d, -48(%rbp)
	movq	%r14, -40(%rbp)
	movq	_SIOCGIFCONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movl	%r15d, %edi
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_10:
	movl	%r15d, %edi
	callq	_close
	cmpl	$16, -48(%rbp)
	jl	LBB0_13
## %bb.11:
	movq	%r14, %rbx
	addq	$12, %rbx
	xorl	%r12d, %r12d
	leaq	L_.str.4(%rip), %r15
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-12(%rbx), %rsi
	movl	(%rbx), %edx
	movl	-4(%rbx), %ecx
	movq	%r15, %rdi
	callq	_printf
	incq	%r12
	movl	-48(%rbp), %eax
	sarl	$4, %eax
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	callq	_free
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	callq	_get_number_of_entries
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jg	LBB0_4
LBB0_3:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_errx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nifreqs=%d"

L_.str.1:                               ## @.str.1
	.asciz	"malloc(sizeof(ifreq) * %d)"

	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
L_.str.2:                               ## @.str.2
	.asciz	"socket"

	.comm	_SIOCGIFCONF,4,2                ## @SIOCGIFCONF
L_.str.3:                               ## @.str.3
	.asciz	"ioctl"

L_.str.4:                               ## @.str.4
	.asciz	"%s: af=%hhu socklen=%hhu\n"

	.no_dead_strip	_show_interfaces
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_interfaces
_show_interfaces:                       ; @show_interfaces
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x0
	cbz	w0, LBB0_12
; %bb.1:
	cmp	w21, #0
	b.le	LBB0_13
LBB0_2:
	lsl	w20, w21, #4
	mov	x0, x20
	bl	_malloc
	mov	x19, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
LBB0_4:
Lloh5:
	adrp	x8, _AF_INET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
LBB0_6:
	str	w20, [sp, #16]
	str	x19, [sp, #24]
Lloh16:
	adrp	x8, _SIOCGIFCONF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SIOCGIFCONF@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x21
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh19:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
LBB0_8:
	mov	x0, x21
	bl	_close
	ldr	w8, [sp, #16]
	cmp	w8, #16
	b.lt	LBB0_11
; %bb.9:
	mov	x21, #0
	add	x22, x19, #12
Lloh24:
	adrp	x20, l_.str.4@PAGE
Lloh25:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldur	x1, [x22, #-12]
	ldp	w3, w2, [x22, #-4]
	mov	x0, x20
	bl	_printf
	add	x21, x21, #1
	ldr	w8, [sp, #16]
	asr	w8, w8, #4
	add	x22, x22, #16
	cmp	x21, w8, sxtw
	b.lt	LBB0_10
LBB0_11:
	mov	x0, x19
	bl	_free
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	bl	_get_number_of_entries
	mov	x21, x0
	cmp	w21, #0
	b.gt	LBB0_2
LBB0_13:
Lloh26:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_errx
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nifreqs=%d"

l_.str.1:                               ; @.str.1
	.asciz	"malloc(sizeof(ifreq) * %d)"

	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
l_.str.2:                               ; @.str.2
	.asciz	"socket"

	.comm	_SIOCGIFCONF,4,2                ; @SIOCGIFCONF
l_.str.3:                               ; @.str.3
	.asciz	"ioctl"

l_.str.4:                               ; @.str.4
	.asciz	"%s: af=%hhu socklen=%hhu\n"

	.no_dead_strip	_show_interfaces
.subsections_via_symbols
