	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_p2p_set_own_freq_preference
_wpas_p2p_set_own_freq_preference:      ## @wpas_p2p_set_own_freq_preference
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_1
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.2:
	movl	%esi, %ebx
	movq	8(%rax), %r14
	testl	%esi, %esi
	jle	LBB0_7
## %bb.3:
	movq	16(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.4:
	cmpl	$2, (%r14)
	jl	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_wpas_p2p_num_unused_channels
	testq	%rax, %rax
	jle	LBB0_7
## %bb.6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_wpa_printf
	xorl	%ebx, %ebx
LBB0_7:
	movq	8(%r14), %rax
	movq	(%rax), %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_p2p_set_own_freq_preference    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: Ignore own channel preference %d MHz due to p2p_ignore_shared_freq=1 configuration"

	.no_dead_strip	_wpas_p2p_set_own_freq_preference
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_p2p_set_own_freq_preference
_wpas_p2p_set_own_freq_preference:      ; @wpas_p2p_set_own_freq_preference
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #8]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x9, [x8]
	cbz	x9, LBB0_1
; %bb.3:
	mov	x19, x1
	ldr	x20, [x8, #8]
	cmp	w1, #1
	b.lt	LBB0_8
; %bb.4:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_wpas_p2p_num_unused_channels
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.7:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_wpa_printf
	mov	w19, #0
LBB0_8:
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_p2p_set_own_freq_preference
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: Ignore own channel preference %d MHz due to p2p_ignore_shared_freq=1 configuration"

	.no_dead_strip	_wpas_p2p_set_own_freq_preference
.subsections_via_symbols
