	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_update_channel_list   ## -- Begin function wpas_p2p_update_channel_list
	.p2align	4, 0x90
_wpas_p2p_update_channel_list:          ## @wpas_p2p_update_channel_list
	.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	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %r12d
	movl	%r12d, %edi
	movl	$4, %esi
	callq	_os_calloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r12d, %edx
	callq	_get_shared_radio_freqs_data
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	-56(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_os_memset
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_os_memset
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_wpas_p2p_setup_channels
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_6
LBB0_5:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_p2p_update_channel_list
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_wpas_p2p_optimize_listen_channel
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_wpas_p2p_consider_moving_gos
	movq	%r15, %rdi
	callq	_os_free
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: Failed to update supported channel list"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_update_channel_list   ; -- Begin function wpas_p2p_update_channel_list
	.p2align	2
_wpas_p2p_update_channel_list:          ; @wpas_p2p_update_channel_list
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x19, x1
	mov	x20, x0
	ldr	w22, [x0]
	mov	x0, x22
	mov	w1, #4
	bl	_os_calloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_get_shared_radio_freqs_data
	mov	x22, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_os_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #4
	bl	_os_memset
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x20
	bl	_wpas_p2p_setup_channels
	cbz	x0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	b	LBB0_6
LBB0_5:
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
	add	x1, sp, #8
	mov	x2, sp
	bl	_p2p_update_channel_list
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_wpas_p2p_optimize_listen_channel
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x19
	bl	_wpas_p2p_consider_moving_gos
	mov	x0, x21
	bl	_os_free
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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: Failed to update supported channel list"

.subsections_via_symbols
