	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifconfig_get_orig_name         ## -- Begin function ifconfig_get_orig_name
	.p2align	4, 0x90
_ifconfig_get_orig_name:                ## @ifconfig_get_orig_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	%rsi, %rdi
	callq	_if_nametoindex
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	_CTL_NET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -64(%rbp)
	movq	_PF_LINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -60(%rbp)
	movq	_NETLINK_GENERIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	movq	_IFMIB_IFDATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -52(%rbp)
	movl	%eax, -48(%rbp)
	movq	_IFDATA_DRIVERNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	$0, -72(%rbp)
	leaq	-64(%rbp), %rdi
	leaq	-72(%rbp), %rcx
	movl	$6, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	testq	%rax, %rax
	js	LBB0_5
## %bb.2:
	movq	-72(%rbp), %rdi
	callq	_malloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	-64(%rbp), %rdi
	leaq	-72(%rbp), %rcx
	xorl	%ebx, %ebx
	movl	$6, %esi
	movq	%rax, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	testq	%rax, %rax
	jns	LBB0_8
## %bb.4:
	movq	(%r14), %rdi
	callq	_free
	movq	$0, (%r14)
LBB0_5:
	movq	_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_7:
	movq	%rax, (%r15)
	movl	$-1, %ebx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_NET,4,2                    ## @CTL_NET
	.comm	_PF_LINK,4,2                    ## @PF_LINK
	.comm	_NETLINK_GENERIC,4,2            ## @NETLINK_GENERIC
	.comm	_IFMIB_IFDATA,4,2               ## @IFMIB_IFDATA
	.comm	_IFDATA_DRIVERNAME,4,2          ## @IFDATA_DRIVERNAME
	.comm	_OTHER,4,2                      ## @OTHER
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifconfig_get_orig_name         ; -- Begin function ifconfig_get_orig_name
	.p2align	2
_ifconfig_get_orig_name:                ; @ifconfig_get_orig_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	x0, x1
	bl	_if_nametoindex
	cbz	w0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _CTL_NET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTL_NET@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PF_LINK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PF_LINK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
Lloh9:
	adrp	x8, _NETLINK_GENERIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NETLINK_GENERIC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _IFMIB_IFDATA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IFMIB_IFDATA@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
Lloh15:
	adrp	x8, _IFDATA_DRIVERNAME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IFDATA_DRIVERNAME@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	stp	w0, w8, [sp, #32]
	str	xzr, [sp, #8]
	add	x0, sp, #16
	add	x3, sp, #8
	mov	w1, #6
	mov	x2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_sysctl
	tbnz	x0, #63, LBB0_5
; %bb.2:
	ldr	x0, [sp, #8]
	bl	_malloc
	str	x0, [x20]
	cbz	x0, LBB0_5
; %bb.3:
	mov	x2, x0
	add	x0, sp, #16
	add	x3, sp, #8
	mov	w1, #6
	mov	w4, #0
	mov	w5, #0
	bl	_sysctl
	mov	x8, x0
	mov	w0, #0
	tbz	x8, #63, LBB0_6
; %bb.4:
	ldr	x0, [x20]
	bl	_free
	str	xzr, [x20]
LBB0_5:
Lloh18:
	adrp	x8, _OTHER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OTHER@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	adrp	x9, _ENOENT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x8, x9, x8, eq
	str	x8, [x19]
	mov	w0, #-1
LBB0_6:
	ldur	x8, [x29, #-24]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_NET,4,2                    ; @CTL_NET
	.comm	_PF_LINK,4,2                    ; @PF_LINK
	.comm	_NETLINK_GENERIC,4,2            ; @NETLINK_GENERIC
	.comm	_IFMIB_IFDATA,4,2               ; @IFMIB_IFDATA
	.comm	_IFDATA_DRIVERNAME,4,2          ; @IFDATA_DRIVERNAME
	.comm	_OTHER,4,2                      ; @OTHER
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
.subsections_via_symbols
