	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_validate_rf_bands
_wps_validate_rf_bands:                 ## @wps_validate_rf_bands
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.4:
	movl	(%rdi), %edx
	movq	_WPS_RF_24GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %edx
	je	LBB0_11
## %bb.5:
	movq	_WPS_RF_50GHZ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpl	%esi, %edx
	je	LBB0_11
## %bb.6:
	movq	_WPS_RF_60GHZ@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	cmpl	%edi, %edx
	je	LBB0_11
## %bb.7:
	orl	%ecx, %esi
	cmpl	%esi, %edx
	je	LBB0_11
## %bb.8:
	orl	%esi, %edi
	cmpl	%edi, %edx
	je	LBB0_11
## %bb.9:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_1:
	testl	%esi, %esi
	je	LBB0_2
## %bb.3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_10:
	movl	$-1, %eax
LBB0_11:
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS-STRICT: RF Bands attribute missing"

	.comm	_WPS_RF_24GHZ,4,2               ## @WPS_RF_24GHZ
	.comm	_WPS_RF_50GHZ,4,2               ## @WPS_RF_50GHZ
	.comm	_WPS_RF_60GHZ,4,2               ## @WPS_RF_60GHZ
L_.str.1:                               ## @.str.1
	.asciz	"WPS-STRICT: Invalid Rf Bands attribute value 0x%x"

	.no_dead_strip	_wps_validate_rf_bands
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_validate_rf_bands
_wps_validate_rf_bands:                 ; @wps_validate_rf_bands
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _WPS_RF_24GHZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPS_RF_24GHZ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_9
; %bb.2:
Lloh3:
	adrp	x10, _WPS_RF_50GHZ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WPS_RF_50GHZ@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w10
	b.eq	LBB0_9
; %bb.3:
Lloh6:
	adrp	x11, _WPS_RF_60GHZ@GOTPAGE
Lloh7:
	ldr	x11, [x11, _WPS_RF_60GHZ@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	w8, w11
	b.eq	LBB0_9
; %bb.4:
	orr	w9, w10, w9
	orr	w10, w11, w9
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.eq	LBB0_9
; %bb.5:
Lloh9:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:
	cbz	w1, LBB0_9
; %bb.7:
Lloh14:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
LBB0_8:
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS-STRICT: RF Bands attribute missing"

	.comm	_WPS_RF_24GHZ,4,2               ; @WPS_RF_24GHZ
	.comm	_WPS_RF_50GHZ,4,2               ; @WPS_RF_50GHZ
	.comm	_WPS_RF_60GHZ,4,2               ; @WPS_RF_60GHZ
l_.str.1:                               ; @.str.1
	.asciz	"WPS-STRICT: Invalid Rf Bands attribute value 0x%x"

	.no_dead_strip	_wps_validate_rf_bands
.subsections_via_symbols
