	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_mesh_get_ifname
_wpas_mesh_get_ifname:                  ## @wpas_mesh_get_ifname
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rcx
	movl	8(%rdi), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%rsi, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_os_snprintf
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	movslq	8(%r14), %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_os_snprintf
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_os_snprintf_error
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
	jmp	LBB0_4
LBB0_1:
	movq	%r15, %rdi
	callq	_os_strlen
	movq	_IFNAMSIZ@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jl	LBB0_4
## %bb.2:
	movq	(%r14), %rdi
	callq	_os_strlen
	cmpq	(%r12), %rax
	jl	LBB0_3
LBB0_4:
	incl	8(%r14)
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mesh-%s-%d"

	.comm	_IFNAMSIZ,8,3                   ## @IFNAMSIZ
L_.str.1:                               ## @.str.1
	.asciz	"mesh-%d"

	.no_dead_strip	_wpas_mesh_get_ifname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_mesh_get_ifname
_wpas_mesh_get_ifname:                  ; @wpas_mesh_get_ifname
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x3, [x0]
	ldr	w8, [x0, #8]
	str	x8, [sp]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x1
	mov	x1, x20
	bl	_os_snprintf
	mov	x1, x0
	mov	x0, x20
	bl	_os_snprintf_error
	cbz	x0, LBB0_3
LBB0_1:
	ldrsw	x3, [x19, #8]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	bl	_os_snprintf
	mov	x1, x0
	mov	x0, x20
	bl	_os_snprintf_error
	cbz	x0, LBB0_5
; %bb.2:
	mov	w0, #-1
	b	LBB0_6
LBB0_3:
	mov	x0, x21
	bl	_os_strlen
Lloh4:
	adrp	x22, _IFNAMSIZ@GOTPAGE
Lloh5:
	ldr	x22, [x22, _IFNAMSIZ@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.lt	LBB0_5
; %bb.4:
	ldr	x0, [x19]
	bl	_os_strlen
	ldr	x8, [x22]
	cmp	x0, x8
	b.lt	LBB0_1
LBB0_5:
	mov	w0, #0
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mesh-%s-%d"

	.comm	_IFNAMSIZ,8,3                   ; @IFNAMSIZ
l_.str.1:                               ; @.str.1
	.asciz	"mesh-%d"

	.no_dead_strip	_wpas_mesh_get_ifname
.subsections_via_symbols
