	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_orig_iface_name
_get_orig_iface_name:                   ## @get_orig_iface_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_ifconfig_open
	movq	%rax, %r13
	leaq	-48(%rbp), %rdx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_ifconfig_get_orig_name
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rbx
	jmp	LBB0_3
LBB0_2:
	movq	%r12, -48(%rbp)
	movq	%r12, %rbx
LBB0_3:
	movq	%rbx, %rdi
	callq	_strlen
	cmpq	$5, %rax
	jl	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_6:
	movq	%r13, %rdi
	callq	_ifconfig_close
	movq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_setoid
	movq	-48(%rbp), %rdi
	cmpq	%r12, %rdi
	je	LBB0_8
## %bb.7:
	callq	_free
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wlan"

L_.str.1:                               ## @.str.1
	.asciz	"expecting a wlan interface name"

	.no_dead_strip	_get_orig_iface_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_orig_iface_name
_get_orig_iface_name:                   ; @get_orig_iface_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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_ifconfig_open
	mov	x22, x0
	add	x2, sp, #8
	mov	x1, x19
	bl	_ifconfig_get_orig_name
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ldr	x23, [sp, #8]
	b	LBB0_3
LBB0_2:
	str	x19, [sp, #8]
	mov	x23, x19
LBB0_3:
	mov	x0, x23
	bl	_strlen
	cmp	x0, #5
	b.lt	LBB0_5
; %bb.4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_6
LBB0_5:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_6:
	mov	x0, x22
	bl	_ifconfig_close
	ldr	x2, [sp, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_setoid
	ldr	x0, [sp, #8]
	cmp	x0, x19
	b.eq	LBB0_8
; %bb.7:
	bl	_free
LBB0_8:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wlan"

l_.str.1:                               ; @.str.1
	.asciz	"expecting a wlan interface name"

	.no_dead_strip	_get_orig_iface_name
.subsections_via_symbols
