	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8821ae_phy_get_secondary_chnl
__rtl8821ae_phy_get_secondary_chnl:     ## @_rtl8821ae_phy_get_secondary_chnl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_rtl_mac
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_HT_CHANNEL_WIDTH_80@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.1:
	movq	(%r14), %rax
	movq	_PRIME_CHNL_OFFSET_LOWER@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_3
## %bb.2:
	movq	_VHT_DATA_SC_40_LOWER_OF_80MHZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	jmp	LBB0_6
LBB0_18:
	movq	_HT_CHANNEL_WIDTH_20_40@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.19:
	movq	8(%r14), %rax
	movq	_PRIME_CHNL_OFFSET_UPPER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.20:
	movq	_PRIME_CHNL_OFFSET_LOWER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
	jmp	LBB0_21
LBB0_3:
	movq	_PRIME_CHNL_OFFSET_UPPER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_VHT_DATA_SC_40_UPPER_OF_80MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rcx, %rax
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	(%rbx), %rax
	xorl	%ebx, %ebx
LBB0_6:
	movq	8(%r14), %rcx
	cmpq	%rax, %rcx
	jne	LBB0_9
## %bb.7:
	movq	(%r14), %rdx
	movq	_HAL_PRIME_CHNL_OFFSET_LOWER@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_9
## %bb.8:
	movq	_VHT_DATA_SC_20_LOWEST_OF_80MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_9:
	movq	_PRIME_CHNL_OFFSET_UPPER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_12
## %bb.10:
	movq	(%r14), %rsi
	movq	_HAL_PRIME_CHNL_OFFSET_LOWER@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_12
LBB0_11:
	movq	_VHT_DATA_SC_20_LOWER_OF_80MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_12:
	cmpq	%rax, %rcx
	jne	LBB0_15
## %bb.13:
	movq	(%r14), %rax
	movq	_HAL_PRIME_CHNL_OFFSET_UPPER@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_15
LBB0_14:
	movq	_VHT_DATA_SC_20_UPPER_OF_80MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_15:
	cmpq	%rdx, %rcx
	jne	LBB0_21
## %bb.16:
	movq	(%r14), %rax
	movq	_HAL_PRIME_CHNL_OFFSET_UPPER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.17:
	movq	_VHT_DATA_SC_20_UPPERST_OF_80MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_21:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_22:
	xorl	%eax, %eax
LBB0_23:
	shll	$4, %ebx
	orl	%eax, %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HT_CHANNEL_WIDTH_80,8,3        ## @HT_CHANNEL_WIDTH_80
	.comm	_PRIME_CHNL_OFFSET_LOWER,8,3    ## @PRIME_CHNL_OFFSET_LOWER
	.comm	_VHT_DATA_SC_40_LOWER_OF_80MHZ,4,2 ## @VHT_DATA_SC_40_LOWER_OF_80MHZ
	.comm	_PRIME_CHNL_OFFSET_UPPER,8,3    ## @PRIME_CHNL_OFFSET_UPPER
	.comm	_VHT_DATA_SC_40_UPPER_OF_80MHZ,4,2 ## @VHT_DATA_SC_40_UPPER_OF_80MHZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SCMapping: Not Correct Primary40MHz Setting\n"

	.comm	_HAL_PRIME_CHNL_OFFSET_LOWER,8,3 ## @HAL_PRIME_CHNL_OFFSET_LOWER
	.comm	_VHT_DATA_SC_20_LOWEST_OF_80MHZ,4,2 ## @VHT_DATA_SC_20_LOWEST_OF_80MHZ
	.comm	_VHT_DATA_SC_20_LOWER_OF_80MHZ,4,2 ## @VHT_DATA_SC_20_LOWER_OF_80MHZ
	.comm	_HAL_PRIME_CHNL_OFFSET_UPPER,8,3 ## @HAL_PRIME_CHNL_OFFSET_UPPER
	.comm	_VHT_DATA_SC_20_UPPER_OF_80MHZ,4,2 ## @VHT_DATA_SC_20_UPPER_OF_80MHZ
	.comm	_VHT_DATA_SC_20_UPPERST_OF_80MHZ,4,2 ## @VHT_DATA_SC_20_UPPERST_OF_80MHZ
	.comm	_HT_CHANNEL_WIDTH_20_40,8,3     ## @HT_CHANNEL_WIDTH_20_40
	.no_dead_strip	__rtl8821ae_phy_get_secondary_chnl
.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_secondary_chnl
__rtl8821ae_phy_get_secondary_chnl:     ; @_rtl8821ae_phy_get_secondary_chnl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	bl	_rtl_mac
	mov	x19, x0
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _HT_CHANNEL_WIDTH_80@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HT_CHANNEL_WIDTH_80@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x21, _PRIME_CHNL_OFFSET_LOWER@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PRIME_CHNL_OFFSET_LOWER@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
Lloh5:
	adrp	x9, _VHT_DATA_SC_40_LOWER_OF_80MHZ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VHT_DATA_SC_40_LOWER_OF_80MHZ@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x9]
	b	LBB0_11
LBB0_3:
Lloh8:
	adrp	x9, _HT_CHANNEL_WIDTH_20_40@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HT_CHANNEL_WIDTH_20_40@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.4:
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x9, _PRIME_CHNL_OFFSET_UPPER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PRIME_CHNL_OFFSET_UPPER@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	mov	w20, #0
	b	LBB0_19
LBB0_6:
Lloh14:
	adrp	x10, _PRIME_CHNL_OFFSET_UPPER@GOTPAGE
Lloh15:
	ldr	x10, [x10, _PRIME_CHNL_OFFSET_UPPER@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_10
; %bb.7:
Lloh17:
	adrp	x8, _VHT_DATA_SC_40_UPPER_OF_80MHZ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VHT_DATA_SC_40_UPPER_OF_80MHZ@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	mov	x8, x9
	b	LBB0_11
LBB0_8:
Lloh20:
	adrp	x9, _PRIME_CHNL_OFFSET_LOWER@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PRIME_CHNL_OFFSET_LOWER@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.9:
	mov	w20, #0
	b	LBB0_16
LBB0_10:
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	w20, #0
	ldr	x8, [x21]
LBB0_11:
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.12:
	ldr	x10, [x19]
Lloh25:
	adrp	x11, _HAL_PRIME_CHNL_OFFSET_LOWER@GOTPAGE
Lloh26:
	ldr	x11, [x11, _HAL_PRIME_CHNL_OFFSET_LOWER@GOTPAGEOFF]
Lloh27:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_14
; %bb.13:
Lloh28:
	adrp	x8, _VHT_DATA_SC_20_LOWEST_OF_80MHZ@GOTPAGE
Lloh29:
	ldr	x8, [x8, _VHT_DATA_SC_20_LOWEST_OF_80MHZ@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	b	LBB0_27
LBB0_14:
Lloh31:
	adrp	x10, _PRIME_CHNL_OFFSET_UPPER@GOTPAGE
Lloh32:
	ldr	x10, [x10, _PRIME_CHNL_OFFSET_UPPER@GOTPAGEOFF]
Lloh33:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_17
; %bb.15:
	ldr	x11, [x19]
Lloh34:
	adrp	x12, _HAL_PRIME_CHNL_OFFSET_LOWER@GOTPAGE
Lloh35:
	ldr	x12, [x12, _HAL_PRIME_CHNL_OFFSET_LOWER@GOTPAGEOFF]
Lloh36:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_17
LBB0_16:
Lloh37:
	adrp	x8, _VHT_DATA_SC_20_LOWER_OF_80MHZ@GOTPAGE
Lloh38:
	ldr	x8, [x8, _VHT_DATA_SC_20_LOWER_OF_80MHZ@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	b	LBB0_27
LBB0_17:
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.18:
	ldr	x8, [x19]
Lloh40:
	adrp	x11, _HAL_PRIME_CHNL_OFFSET_UPPER@GOTPAGE
Lloh41:
	ldr	x11, [x11, _HAL_PRIME_CHNL_OFFSET_UPPER@GOTPAGEOFF]
Lloh42:
	ldr	x11, [x11]
	cmp	x8, x11
	b.ne	LBB0_20
LBB0_19:
Lloh43:
	adrp	x8, _VHT_DATA_SC_20_UPPER_OF_80MHZ@GOTPAGE
Lloh44:
	ldr	x8, [x8, _VHT_DATA_SC_20_UPPER_OF_80MHZ@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	b	LBB0_27
LBB0_20:
	cmp	x9, x10
	b.ne	LBB0_23
; %bb.21:
	ldr	x8, [x19]
Lloh46:
	adrp	x9, _HAL_PRIME_CHNL_OFFSET_UPPER@GOTPAGE
Lloh47:
	ldr	x9, [x9, _HAL_PRIME_CHNL_OFFSET_UPPER@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.22:
Lloh49:
	adrp	x8, _VHT_DATA_SC_20_UPPERST_OF_80MHZ@GOTPAGE
Lloh50:
	ldr	x8, [x8, _VHT_DATA_SC_20_UPPERST_OF_80MHZ@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	b	LBB0_27
LBB0_23:
Lloh52:
	adrp	x0, l_.str@PAGE
Lloh53:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_26
LBB0_24:
Lloh54:
	adrp	x0, l_.str@PAGE
Lloh55:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_25:
	mov	w20, #0
LBB0_26:
	mov	w8, #0
LBB0_27:
	orr	w0, w8, w20, lsl #4
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_HT_CHANNEL_WIDTH_80,8,3        ; @HT_CHANNEL_WIDTH_80
	.comm	_PRIME_CHNL_OFFSET_LOWER,8,3    ; @PRIME_CHNL_OFFSET_LOWER
	.comm	_VHT_DATA_SC_40_LOWER_OF_80MHZ,4,2 ; @VHT_DATA_SC_40_LOWER_OF_80MHZ
	.comm	_PRIME_CHNL_OFFSET_UPPER,8,3    ; @PRIME_CHNL_OFFSET_UPPER
	.comm	_VHT_DATA_SC_40_UPPER_OF_80MHZ,4,2 ; @VHT_DATA_SC_40_UPPER_OF_80MHZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SCMapping: Not Correct Primary40MHz Setting\n"

	.comm	_HAL_PRIME_CHNL_OFFSET_LOWER,8,3 ; @HAL_PRIME_CHNL_OFFSET_LOWER
	.comm	_VHT_DATA_SC_20_LOWEST_OF_80MHZ,4,2 ; @VHT_DATA_SC_20_LOWEST_OF_80MHZ
	.comm	_VHT_DATA_SC_20_LOWER_OF_80MHZ,4,2 ; @VHT_DATA_SC_20_LOWER_OF_80MHZ
	.comm	_HAL_PRIME_CHNL_OFFSET_UPPER,8,3 ; @HAL_PRIME_CHNL_OFFSET_UPPER
	.comm	_VHT_DATA_SC_20_UPPER_OF_80MHZ,4,2 ; @VHT_DATA_SC_20_UPPER_OF_80MHZ
	.comm	_VHT_DATA_SC_20_UPPERST_OF_80MHZ,4,2 ; @VHT_DATA_SC_20_UPPERST_OF_80MHZ
	.comm	_HT_CHANNEL_WIDTH_20_40,8,3     ; @HT_CHANNEL_WIDTH_20_40
	.no_dead_strip	__rtl8821ae_phy_get_secondary_chnl
.subsections_via_symbols
