	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_p2p_get_group_ifname
_wpas_p2p_get_group_ifname:             ## @wpas_p2p_get_group_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	%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, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movq	_P2P_MGMT_DEVICE_PREFIX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_os_strlen
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_os_strncmp
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	(%r12), %rdi
	movl	$45, %esi
	callq	_os_strrchr
	movq	%rax, %r13
	incq	%r13
LBB0_2:
	movl	8(%r12), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_os_snprintf
	movq	%r15, %rdi
	callq	_os_strlen
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jl	LBB0_7
## %bb.3:
	movq	(%r12), %rdi
	callq	_os_strlen
	cmpq	(%rbx), %rax
	jge	LBB0_7
## %bb.4:
	movslq	8(%r12), %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_os_snprintf
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%r14, %r14
	je	LBB0_7
## %bb.5:
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movb	$0, -1(%r14,%r15)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P2P_MGMT_DEVICE_PREFIX,8,3     ## @P2P_MGMT_DEVICE_PREFIX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p2p-%s-%d"

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

	.no_dead_strip	_wpas_p2p_get_group_ifname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_p2p_get_group_ifname
_wpas_p2p_get_group_ifname:             ; @wpas_p2p_get_group_ifname
	.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
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _P2P_MGMT_DEVICE_PREFIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P2P_MGMT_DEVICE_PREFIX@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	mov	x0, x23
	bl	_os_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_os_strncmp
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x21]
	mov	w1, #45
	bl	_os_strrchr
	add	x22, x0, #1
LBB0_2:
	ldr	w8, [x21, #8]
	str	x8, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	bl	_os_snprintf
	mov	x0, x20
	bl	_os_strlen
Lloh5:
	adrp	x22, _IFNAMSIZ@GOTPAGE
Lloh6:
	ldr	x22, [x22, _IFNAMSIZ@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.lt	LBB0_7
; %bb.3:
	ldr	x0, [x21]
	bl	_os_strlen
	ldr	x8, [x22]
	cmp	x0, x8
	b.ge	LBB0_7
; %bb.4:
	ldrsw	x3, [x21, #8]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_os_snprintf
	mov	x1, x0
	mov	x0, x19
	bl	_os_snprintf_error
	cbz	x19, LBB0_7
; %bb.5:
	cbz	x0, LBB0_7
; %bb.6:
	add	x8, x19, x20
	sturb	wzr, [x8, #-1]
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_P2P_MGMT_DEVICE_PREFIX,8,3     ; @P2P_MGMT_DEVICE_PREFIX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p2p-%s-%d"

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

	.no_dead_strip	_wpas_p2p_get_group_ifname
.subsections_via_symbols
