	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8821ae_update_channel_access_setting ## -- Begin function rtl8821ae_update_channel_access_setting
	.p2align	4, 0x90
_rtl8821ae_update_channel_access_setting: ## @rtl8821ae_update_channel_access_setting
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, %r15
	movq	(%rax), %r12
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_SLOT_TIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	24(%r15), %rdx
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	_WIRELESS_MODE_G@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	(%rax), %r12
	setne	%cl
	leal	10(,%rcx,4), %eax
	movl	%eax, -40(%rbp)
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_SIFS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	$10, -36(%rbp)
	movq	_WIRELESS_MODE_AC_5G@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_5
## %bb.1:
	movq	_LDPC_VHT_ENABLE_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_5
## %bb.2:
	movq	_STBC_VHT_ENABLE_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r15)
	je	LBB0_5
## %bb.3:
	movq	16(%r15), %rax
	movq	_PEER_ATH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	$8, -36(%rbp)
LBB0_5:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_R2T_SIFS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rax)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_VAR_SLOT_TIME,4,2           ## @HW_VAR_SLOT_TIME
	.comm	_WIRELESS_MODE_G,8,3            ## @WIRELESS_MODE_G
	.comm	_HW_VAR_SIFS,4,2                ## @HW_VAR_SIFS
	.comm	_WIRELESS_MODE_AC_5G,8,3        ## @WIRELESS_MODE_AC_5G
	.comm	_LDPC_VHT_ENABLE_RX,4,2         ## @LDPC_VHT_ENABLE_RX
	.comm	_STBC_VHT_ENABLE_RX,4,2         ## @STBC_VHT_ENABLE_RX
	.comm	_PEER_ATH,8,3                   ## @PEER_ATH
	.comm	_HW_VAR_R2T_SIFS,4,2            ## @HW_VAR_R2T_SIFS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8821ae_update_channel_access_setting ; -- Begin function rtl8821ae_update_channel_access_setting
	.p2align	2
_rtl8821ae_update_channel_access_setting: ; @rtl8821ae_update_channel_access_setting
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x21, x0
	mov	x2, x0
	ldr	x22, [x2], #24
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _HW_VAR_SLOT_TIME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HW_VAR_SLOT_TIME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
Lloh3:
	adrp	x8, _WIRELESS_MODE_G@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WIRELESS_MODE_G@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x22, x8
	mov	w8, #14
	mov	w23, #10
	csel	w8, w23, w8, eq
	str	w8, [sp, #12]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _HW_VAR_SIFS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HW_VAR_SIFS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	str	w23, [sp, #8]
Lloh9:
	adrp	x8, _WIRELESS_MODE_AC_5G@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WIRELESS_MODE_AC_5G@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x21, #8]
Lloh12:
	adrp	x9, _LDPC_VHT_ENABLE_RX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LDPC_VHT_ENABLE_RX@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	ldr	w8, [x21, #12]
Lloh15:
	adrp	x9, _STBC_VHT_ENABLE_RX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _STBC_VHT_ENABLE_RX@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x21, #16]
Lloh18:
	adrp	x9, _PEER_ATH@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PEER_ATH@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	w8, #8
	str	w8, [sp, #8]
LBB0_5:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _HW_VAR_R2T_SIFS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HW_VAR_R2T_SIFS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_VAR_SLOT_TIME,4,2           ; @HW_VAR_SLOT_TIME
	.comm	_WIRELESS_MODE_G,8,3            ; @WIRELESS_MODE_G
	.comm	_HW_VAR_SIFS,4,2                ; @HW_VAR_SIFS
	.comm	_WIRELESS_MODE_AC_5G,8,3        ; @WIRELESS_MODE_AC_5G
	.comm	_LDPC_VHT_ENABLE_RX,4,2         ; @LDPC_VHT_ENABLE_RX
	.comm	_STBC_VHT_ENABLE_RX,4,2         ; @STBC_VHT_ENABLE_RX
	.comm	_PEER_ATH,8,3                   ; @PEER_ATH
	.comm	_HW_VAR_R2T_SIFS,4,2            ; @HW_VAR_R2T_SIFS
.subsections_via_symbols
