	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8821ae_phy_get_chnl_index
__rtl8821ae_phy_get_chnl_index:         ## @_rtl8821ae_phy_get_chnl_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$15, %edi
	jge	LBB0_2
## %bb.1:
	decl	%edi
	movl	$1, %eax
	jmp	LBB0_9
LBB0_2:
	movq	_CHANNEL_MAX_NUMBER_5G@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movq	_channel5g@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edi, (%rdx,%rcx,4)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_4
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	movl	%ecx, %edi
LBB0_9:
	movl	%edi, (%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHANNEL_MAX_NUMBER_5G,4,2      ## @CHANNEL_MAX_NUMBER_5G
	.comm	_channel5g,8,3                  ## @channel5g
	.no_dead_strip	__rtl8821ae_phy_get_chnl_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8821ae_phy_get_chnl_index
__rtl8821ae_phy_get_chnl_index:         ; @_rtl8821ae_phy_get_chnl_index
	.cfi_startproc
; %bb.0:
	cmp	w0, #15
	b.ge	LBB0_2
; %bb.1:
	sub	w8, w0, #1
	mov	w0, #1
	str	w8, [x1]
	ret
LBB0_2:
Lloh0:
	adrp	x8, _CHANNEL_MAX_NUMBER_5G@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHANNEL_MAX_NUMBER_5G@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x8, #0
Lloh3:
	adrp	x10, _channel5g@GOTPAGE
Lloh4:
	ldr	x10, [x10, _channel5g@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x8, lsl #2]
	cmp	w11, w0
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_4
LBB0_6:
	mov	w0, #0
	ret
LBB0_7:
	mov	w0, #0
	str	w8, [x1]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CHANNEL_MAX_NUMBER_5G,4,2      ; @CHANNEL_MAX_NUMBER_5G
	.comm	_channel5g,8,3                  ; @channel5g
	.no_dead_strip	__rtl8821ae_phy_get_chnl_index
.subsections_via_symbols
