	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_ether
_find_ether:                            ## @find_ether
	.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
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.2:
	movq	%rdi, %r15
	leaq	-48(%rbp), %rdi
	callq	_getifaddrs
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_14
## %bb.3:
	movq	-48(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	_AF_LINK@GOTPCREL(%rip), %r12
	movq	_IFF_UP@GOTPCREL(%rip), %rdx
	movq	_IFF_RUNNING@GOTPCREL(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rbx), %ecx
	testl	%ecx, (%rdx)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%ecx, (%r13)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_IFT_ETHER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%rbx), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdx, %r15
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_strlcpy
	movq	%r15, %rdx
	incl	%r14d
	jmp	LBB0_11
LBB0_12:
	movq	-48(%rbp), %rdi
	jmp	LBB0_13
LBB0_4:
	xorl	%edi, %edi
	xorl	%r14d, %r14d
LBB0_13:
	callq	_freeifaddrs
	xorl	%eax, %eax
	cmpl	$1, %r14d
	setne	%al
	negl	%eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_LINK,8,3                    ## @AF_LINK
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_IFF_RUNNING,4,2                ## @IFF_RUNNING
	.comm	_IFT_ETHER,8,3                  ## @IFT_ETHER
	.no_dead_strip	_find_ether
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_ether
_find_ether:                            ; @find_ether
	.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
	mov	x20, x0
	mov	w0, #0
	cbz	x20, LBB0_14
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_14
; %bb.2:
	add	x0, sp, #8
	bl	_getifaddrs
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #-1
	b	LBB0_14
LBB0_4:
	ldr	x22, [sp, #8]
	cbz	x22, LBB0_12
; %bb.5:
	mov	w21, #0
Lloh0:
	adrp	x23, _AF_LINK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AF_LINK@GOTPAGEOFF]
Lloh2:
	adrp	x24, _IFF_UP@GOTPAGE
Lloh3:
	ldr	x24, [x24, _IFF_UP@GOTPAGEOFF]
Lloh4:
	adrp	x25, _IFF_RUNNING@GOTPAGE
Lloh5:
	ldr	x25, [x25, _IFF_RUNNING@GOTPAGEOFF]
Lloh6:
	adrp	x26, _IFT_ETHER@GOTPAGE
Lloh7:
	ldr	x26, [x26, _IFT_ETHER@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x22, [x22, #16]
	cbz	x22, LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x22]
	ldr	w10, [x24]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x25]
	and	w9, w10, w9
	ldr	x10, [x26]
	cmp	w9, #0
	ccmp	x8, x10, #0, ne
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x22, #4]
	mov	x0, x20
	mov	x2, x19
	bl	_strlcpy
	add	w21, w21, #1
	b	LBB0_6
LBB0_11:
	ldr	x0, [sp, #8]
	b	LBB0_13
LBB0_12:
	mov	x0, #0
	mov	w21, #0
LBB0_13:
	bl	_freeifaddrs
	cmp	w21, #1
	csetm	w0, ne
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_LINK,8,3                    ; @AF_LINK
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_IFF_RUNNING,4,2                ; @IFF_RUNNING
	.comm	_IFT_ETHER,8,3                  ; @IFT_ETHER
	.no_dead_strip	_find_ether
.subsections_via_symbols
