	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_get_ht40_mode         ## -- Begin function wpas_p2p_get_ht40_mode
	.p2align	4, 0x90
_wpas_p2p_get_ht40_mode:                ## @wpas_p2p_get_ht40_mode
	.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	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_global_op_class@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	cmpq	$0, 48(%r10)
	je	LBB0_13
## %bb.1:
	xorl	%ecx, %ecx
	movq	_NO_P2P_SUPP@GOTPCREL(%rip), %r9
	movq	_HOSTAPD_MODE_IEEE80211A@GOTPCREL(%rip), %r13
	movq	_BW40PLUS@GOTPCREL(%rip), %r11
	movq	_BW40MINUS@GOTPCREL(%rip), %r8
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_global_op_class@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_NO_P2P_SUPP@GOTPCREL(%rip), %r9
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	imulq	$56, %rcx, %rax
	cmpq	$0, 48(%r10,%rax)
	je	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	imulq	$56, %rcx, %rbx
	movq	(%r10,%rbx), %rax
	cmpq	(%r9), %rax
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r10,%rbx), %r12
	movq	16(%r10,%rbx), %rdi
	cmpq	%rdi, %r12
	jg	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r10,%rbx), %r15
	addq	$16, %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	addq	8(%r15), %r12
	cmpq	%rdi, %r12
	jg	LBB0_11
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r15), %rcx
	cmpq	(%r13), %rcx
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	24(%r15), %rcx
	cmpq	(%r11), %rcx
	sete	%al
	cmpq	(%r8), %rcx
	sete	%bl
	orb	%al, %bl
	cmpb	$1, %bl
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpq	%rdx, %r12
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r11, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rdx, %r14
	callq	_wpas_p2p_verify_channel
	movq	_ALLOWED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	(%r15), %rdi
	movq	_BW40MINUS@GOTPCREL(%rip), %r8
	movq	%r14, %rdx
	movq	%rbx, %r11
	jmp	LBB0_10
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_15:
	movq	24(%r15), %rax
	xorl	%ecx, %ecx
	movq	_BW40MINUS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setne	%cl
	leal	(%rcx,%rcx), %eax
	decl	%eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_global_op_class,8,3            ## @global_op_class
	.comm	_NO_P2P_SUPP,8,3                ## @NO_P2P_SUPP
	.comm	_HOSTAPD_MODE_IEEE80211A,8,3    ## @HOSTAPD_MODE_IEEE80211A
	.comm	_BW40PLUS,8,3                   ## @BW40PLUS
	.comm	_BW40MINUS,8,3                  ## @BW40MINUS
	.comm	_ALLOWED,4,2                    ## @ALLOWED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_get_ht40_mode         ; -- Begin function wpas_p2p_get_ht40_mode
	.p2align	2
_wpas_p2p_get_ht40_mode:                ; @wpas_p2p_get_ht40_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	x0, x1, [sp]                    ; 16-byte Folded Spill
Lloh0:
	adrp	x8, _global_op_class@GOTPAGE
Lloh1:
	ldr	x8, [x8, _global_op_class@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8, #48]
	cbz	x9, LBB0_12
; %bb.1:
	mov	x19, x2
	mov	x23, #0
	mov	w11, #56
Lloh3:
	adrp	x12, _NO_P2P_SUPP@GOTPAGE
Lloh4:
	ldr	x12, [x12, _NO_P2P_SUPP@GOTPAGEOFF]
Lloh5:
	adrp	x27, _HOSTAPD_MODE_IEEE80211A@GOTPAGE
Lloh6:
	ldr	x27, [x27, _HOSTAPD_MODE_IEEE80211A@GOTPAGEOFF]
Lloh7:
	adrp	x28, _BW40PLUS@GOTPAGE
Lloh8:
	ldr	x28, [x28, _BW40PLUS@GOTPAGEOFF]
Lloh9:
	adrp	x26, _BW40MINUS@GOTPAGE
Lloh10:
	ldr	x26, [x26, _BW40MINUS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh11:
	adrp	x8, _global_op_class@GOTPAGE
Lloh12:
	ldr	x8, [x8, _global_op_class@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	mov	w11, #56
Lloh14:
	adrp	x12, _NO_P2P_SUPP@GOTPAGE
Lloh15:
	ldr	x12, [x12, _NO_P2P_SUPP@GOTPAGEOFF]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	madd	x9, x23, x11, x8
	ldr	x9, [x9, #48]
	cbz	x9, LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mul	x9, x23, x11
	ldr	x9, [x8, x9]
	ldr	x10, [x12]
	cmp	x9, x10
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	madd	x25, x23, x11, x8
	ldr	x9, [x25, #16]!
	ldur	x22, [x25, #-8]
	cmp	x22, x9
	b.gt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	madd	x8, x23, x11, x8
	add	x24, x8, #32
	add	x20, x8, #40
	add	x21, x8, #24
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x21]
	add	x22, x8, x22
	cmp	x22, x9
	b.gt	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24]
	ldr	x10, [x27]
	cmp	x8, x10
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x3, [x20]
	ldr	x8, [x28]
	ldr	x10, [x26]
	cmp	x3, x10
	ccmp	x3, x8, #4, ne
	ccmp	x22, x19, #0, eq
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldp	x0, x1, [sp]                    ; 16-byte Folded Reload
	mov	x2, x19
	bl	_wpas_p2p_verify_channel
Lloh16:
	adrp	x8, _ALLOWED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ALLOWED@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x9, [x25]
	b	LBB0_7
LBB0_12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
	ldr	x8, [x20]
	ldr	x9, [x26]
	cmp	x8, x9
	mov	w8, #-1
	cneg	w0, w8, ne
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_global_op_class,8,3            ; @global_op_class
	.comm	_NO_P2P_SUPP,8,3                ; @NO_P2P_SUPP
	.comm	_HOSTAPD_MODE_IEEE80211A,8,3    ; @HOSTAPD_MODE_IEEE80211A
	.comm	_BW40PLUS,8,3                   ; @BW40PLUS
	.comm	_BW40MINUS,8,3                  ; @BW40MINUS
	.comm	_ALLOWED,4,2                    ; @ALLOWED
.subsections_via_symbols
