	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_dpp_allow_ir
_wpas_dpp_allow_ir:                     ## @wpas_dpp_allow_ir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %r9
	testq	%r9, %r9
	je	LBB0_1
## %bb.2:
	movl	%esi, %edx
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_11
## %bb.3:
	movq	_HOSTAPD_CHAN_DISABLED@GOTPCREL(%rip), %rax
	movq	_HOSTAPD_CHAN_NO_IR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_HOSTAPD_CHAN_RADAR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	xorl	%r10d, %r10d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r10
	cmpq	%r8, %r10
	je	LBB0_11
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r10, %rax
	shlq	$4, %rax
	movl	(%r9,%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r9,%rax), %rax
	xorl	%edi, %edi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	incq	%rdi
	cmpq	%rdi, %rcx
	je	LBB0_10
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%edx, (%rax,%rdi,8)
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	testl	%esi, 4(%rax,%rdi,8)
	jne	LBB0_9
## %bb.8:
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_1:
	movl	$-1, %eax
	popq	%rbp
	retq
LBB0_11:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ## @HOSTAPD_CHAN_DISABLED
	.comm	_HOSTAPD_CHAN_NO_IR,4,2         ## @HOSTAPD_CHAN_NO_IR
	.comm	_HOSTAPD_CHAN_RADAR,4,2         ## @HOSTAPD_CHAN_RADAR
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPP: Frequency %u MHz not supported or does not allow PKEX initiation in the current channel list"

	.no_dead_strip	_wpas_dpp_allow_ir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_dpp_allow_ir
_wpas_dpp_allow_ir:                     ; @wpas_dpp_allow_ir
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x2, x1
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x10, #0
Lloh0:
	adrp	x11, _HOSTAPD_CHAN_DISABLED@GOTPAGE
Lloh1:
	ldr	x11, [x11, _HOSTAPD_CHAN_DISABLED@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
Lloh3:
	adrp	x12, _HOSTAPD_CHAN_NO_IR@GOTPAGE
Lloh4:
	ldr	x12, [x12, _HOSTAPD_CHAN_NO_IR@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x12]
	orr	w11, w12, w11
Lloh6:
	adrp	x12, _HOSTAPD_CHAN_RADAR@GOTPAGE
Lloh7:
	ldr	x12, [x12, _HOSTAPD_CHAN_RADAR@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	orr	w11, w11, w12
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #1
	cmp	x10, x9
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	lsl	x12, x10, #4
	ldr	w12, [x8, x12]
	cmp	w12, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x13, x8, x10, lsl #4
	ldr	x13, [x13, #8]
	add	x13, x13, #4
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x13, x13, #8
	subs	x12, x12, #1
	b.eq	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w14, [x13, #-4]
	cmp	w14, w2
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w14, [x13]
	tst	w11, w14
	b.ne	LBB0_6
; %bb.9:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh9:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ; @HOSTAPD_CHAN_DISABLED
	.comm	_HOSTAPD_CHAN_NO_IR,4,2         ; @HOSTAPD_CHAN_NO_IR
	.comm	_HOSTAPD_CHAN_RADAR,4,2         ; @HOSTAPD_CHAN_RADAR
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPP: Frequency %u MHz not supported or does not allow PKEX initiation in the current channel list"

	.no_dead_strip	_wpas_dpp_allow_ir
.subsections_via_symbols
