	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvp_mac_to_if_name
_kvp_mac_to_if_name:                    ## @kvp_mac_to_if_name
	.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
	movq	%rdi, %r12
	leaq	-48(%rbp), %rdi
	callq	_getifaddrs
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rax
	movq	_IFT_ETHER@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_12
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	8(%rax), %rdi
	movq	(%rdi), %rax
	cmpq	(%r13), %rax
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_LLADDR
	movq	%rax, %rdi
	callq	_ether_ntoa
	movl	%eax, %edi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	movb	(%rax), %al
	testb	%al, %al
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rbx
	incq	%rbx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %edi
	callq	_toupper
	movb	%al, -1(%rbx)
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_11
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_9:
	movq	-48(%rbp), %rax
	movl	(%rax), %edi
	callq	_strdup
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_free
LBB0_12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_freeifaddrs
LBB0_13:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFT_ETHER,8,3                  ## @IFT_ETHER
	.no_dead_strip	_kvp_mac_to_if_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvp_mac_to_if_name
_kvp_mac_to_if_name:                    ; @kvp_mac_to_if_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	add	x0, sp, #8
	bl	_getifaddrs
	tbnz	w0, #31, LBB0_11
; %bb.1:
	ldr	x19, [sp, #8]
Lloh0:
	adrp	x22, _IFT_ETHER@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IFT_ETHER@GOTPAGEOFF]
	mov	x8, x19
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #16]
	str	x8, [sp, #8]
	cbz	x8, LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x0, [x8, #8]
	ldr	x8, [x0]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_LLADDR
	bl	_ether_ntoa
	bl	_strdup
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x21, #1
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_toupper
	sturb	w0, [x23, #-1]
	ldrb	w8, [x23], #1
	cbnz	w8, LBB0_7
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_strncmp
	cbz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_free
	b	LBB0_2
LBB0_10:
	mov	x20, #0
	b	LBB0_13
LBB0_11:
	mov	x20, #0
	b	LBB0_14
LBB0_12:
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	bl	_strdup
	mov	x20, x0
	mov	x0, x21
	bl	_free
LBB0_13:
	mov	x0, x19
	bl	_freeifaddrs
LBB0_14:
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IFT_ETHER,8,3                  ; @IFT_ETHER
	.no_dead_strip	_kvp_mac_to_if_name
.subsections_via_symbols
