	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_ap_priority_compar         ## -- Begin function wps_ap_priority_compar
	.p2align	4, 0x90
_wps_ap_priority_compar:                ## @wps_ap_priority_compar
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, %ebx
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rsi, %r14
	leaq	-32(%rbp), %rsi
	callq	_wps_parse_msg
	testq	%rax, %rax
	js	LBB0_12
## %bb.2:
	movq	-32(%rbp), %rax
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	cmpq	$0, (%rax)
	setne	%r15b
LBB0_4:
	movl	$-1, %ebx
	testq	%r14, %r14
	je	LBB0_12
## %bb.5:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_wps_parse_msg
	testq	%rax, %rax
	js	LBB0_12
## %bb.6:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	cmpq	$0, (%rax)
	setne	%al
	testl	%r15d, %r15d
	jne	LBB0_10
	jmp	LBB0_11
LBB0_7:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	je	LBB0_11
LBB0_10:
	testb	%al, %al
	je	LBB0_12
LBB0_11:
	testl	%r15d, %r15d
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_ap_priority_compar         ; -- Begin function wps_ap_priority_compar
	.p2align	2
_wps_ap_priority_compar:                ; @wps_ap_priority_compar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x1
	add	x1, sp, #8
	bl	_wps_parse_msg
	tbnz	x0, #63, LBB0_4
; %bb.2:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w20, ne
	cbnz	x19, LBB0_6
	b	LBB0_11
LBB0_4:
	mov	w0, #1
	b	LBB0_13
LBB0_5:
	mov	w20, #0
	cbz	x19, LBB0_11
LBB0_6:
	add	x1, sp, #8
	mov	x0, x19
	bl	_wps_parse_msg
	tbnz	x0, #63, LBB0_11
; %bb.7:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w8, ne
LBB0_9:
	cbz	w20, LBB0_12
; %bb.10:
	cbnz	w8, LBB0_12
LBB0_11:
	mov	w0, #-1
	b	LBB0_13
LBB0_12:
	cmp	w20, #0
	cset	w9, eq
	and	w0, w9, w8
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
