	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800_config_intf             ## -- Begin function rt2800_config_intf
	.p2align	4, 0x90
_rt2800_config_intf:                    ## @rt2800_config_intf
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	_CONFIG_UPDATE_TYPE@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_5
## %bb.1:
	movq	_BCN_TIME_CFG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_rt2800_register_read
	movl	%eax, -44(%rbp)
	movq	_BCN_TIME_CFG_TSF_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	-44(%rbp), %rdi
	callq	_rt2x00_set_field32
	movl	(%r12), %esi
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	callq	_rt2800_register_write
	movslq	(%r15), %r12
	movq	_TSF_SYNC_AP_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_TBTT_SYNC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2800_register_read
	movl	%eax, -44(%rbp)
	movq	_TBTT_SYNC_CFG_BCN_CWMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpq	%r12, %rbx
	jne	LBB0_3
## %bb.2:
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field32
	movq	_TBTT_SYNC_CFG_BCN_AIFSN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movq	_TBTT_SYNC_CFG_BCN_EXP_WIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$32, %edx
	callq	_rt2x00_set_field32
	movq	_TBTT_SYNC_CFG_TBTT_ADJUST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	jmp	LBB0_4
LBB0_3:
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_rt2x00_set_field32
	movq	_TBTT_SYNC_CFG_BCN_AIFSN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_rt2x00_set_field32
	movq	_TBTT_SYNC_CFG_BCN_EXP_WIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$32, %edx
	callq	_rt2x00_set_field32
	movq	_TBTT_SYNC_CFG_TBTT_ADJUST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$16, %edx
LBB0_4:
	callq	_rt2x00_set_field32
	movq	_TBTT_SYNC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	callq	_rt2800_register_write
	movq	_CONFIG_UPDATE_TYPE@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	_CONFIG_UPDATE_MAC@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_6
## %bb.7:
	xorl	%r12d, %r12d
	testl	%r13d, (%rcx)
	je	LBB0_10
## %bb.8:
	movslq	(%r15), %rax
	movq	_TSF_SYNC_AP_NONE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_10
## %bb.9:
	movq	8(%r15), %rdi
	movq	16(%r15), %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	$1, %r12d
LBB0_10:
	movq	16(%r15), %rdi
	callq	_is_zero_ether_addr
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	16(%r15), %rax
	movq	8(%rax), %rdi
	callq	_le32_to_cpu
	movl	%eax, -44(%rbp)
	movq	_MAC_ADDR_DW1_UNICAST_TO_ME_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdi
	movl	$255, %edx
	callq	_rt2x00_set_field32
	movl	-44(%rbp), %edi
	callq	_cpu_to_le32
	movq	16(%r15), %rcx
	movq	%rax, 8(%rcx)
LBB0_12:
	movq	_MAC_ADDR_DW0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r15), %rdx
	movq	%r14, %rdi
	movl	$8, %ecx
	callq	_rt2800_register_multiwrite
	jmp	LBB0_13
LBB0_6:
	xorl	%r12d, %r12d
LBB0_13:
	movq	_CONFIG_UPDATE_BSSID@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	orl	%r12d, %r13d
	je	LBB0_17
## %bb.14:
	movq	8(%r15), %rdi
	callq	_is_zero_ether_addr
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	8(%r15), %rax
	movq	8(%rax), %rdi
	callq	_le32_to_cpu
	movl	%eax, -44(%rbp)
	movq	_MAC_BSSID_DW1_BSS_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_rt2x00_set_field32
	movq	_MAC_BSSID_DW1_BSS_BCN_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field32
	movl	-44(%rbp), %edi
	callq	_cpu_to_le32
	movq	8(%r15), %rcx
	movq	%rax, 8(%rcx)
LBB0_16:
	movq	_MAC_BSSID_DW0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rdx
	movq	%r14, %rdi
	movl	$8, %ecx
	callq	_rt2800_register_multiwrite
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_UPDATE_TYPE,4,2         ## @CONFIG_UPDATE_TYPE
	.comm	_BCN_TIME_CFG,4,2               ## @BCN_TIME_CFG
	.comm	_BCN_TIME_CFG_TSF_SYNC,4,2      ## @BCN_TIME_CFG_TSF_SYNC
	.comm	_TSF_SYNC_AP_NONE,8,3           ## @TSF_SYNC_AP_NONE
	.comm	_TBTT_SYNC_CFG,4,2              ## @TBTT_SYNC_CFG
	.comm	_TBTT_SYNC_CFG_BCN_CWMIN,4,2    ## @TBTT_SYNC_CFG_BCN_CWMIN
	.comm	_TBTT_SYNC_CFG_BCN_AIFSN,4,2    ## @TBTT_SYNC_CFG_BCN_AIFSN
	.comm	_TBTT_SYNC_CFG_BCN_EXP_WIN,4,2  ## @TBTT_SYNC_CFG_BCN_EXP_WIN
	.comm	_TBTT_SYNC_CFG_TBTT_ADJUST,4,2  ## @TBTT_SYNC_CFG_TBTT_ADJUST
	.comm	_CONFIG_UPDATE_MAC,4,2          ## @CONFIG_UPDATE_MAC
	.comm	_MAC_ADDR_DW1_UNICAST_TO_ME_MASK,4,2 ## @MAC_ADDR_DW1_UNICAST_TO_ME_MASK
	.comm	_MAC_ADDR_DW0,4,2               ## @MAC_ADDR_DW0
	.comm	_CONFIG_UPDATE_BSSID,4,2        ## @CONFIG_UPDATE_BSSID
	.comm	_MAC_BSSID_DW1_BSS_ID_MASK,4,2  ## @MAC_BSSID_DW1_BSS_ID_MASK
	.comm	_MAC_BSSID_DW1_BSS_BCN_NUM,4,2  ## @MAC_BSSID_DW1_BSS_BCN_NUM
	.comm	_MAC_BSSID_DW0,4,2              ## @MAC_BSSID_DW0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800_config_intf             ; -- Begin function rt2800_config_intf
	.p2align	2
_rt2800_config_intf:                    ; @rt2800_config_intf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x23, _CONFIG_UPDATE_TYPE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CONFIG_UPDATE_TYPE@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x22, _TSF_SYNC_AP_NONE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TSF_SYNC_AP_NONE@GOTPAGEOFF]
	tst	w8, w3
	b.eq	LBB0_5
; %bb.1:
Lloh4:
	adrp	x24, _BCN_TIME_CFG@GOTPAGE
Lloh5:
	ldr	x24, [x24, _BCN_TIME_CFG@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rt2800_register_read
	str	w0, [sp, #12]
Lloh6:
	adrp	x8, _BCN_TIME_CFG_TSF_SYNC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BCN_TIME_CFG_TSF_SYNC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x20]
	add	x0, sp, #12
	bl	_rt2x00_set_field32
	ldr	w1, [x24]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2800_register_write
	ldrsw	x25, [x20]
	ldr	x26, [x22]
Lloh9:
	adrp	x24, _TBTT_SYNC_CFG@GOTPAGE
Lloh10:
	ldr	x24, [x24, _TBTT_SYNC_CFG@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rt2800_register_read
	str	w0, [sp, #12]
Lloh11:
	adrp	x8, _TBTT_SYNC_CFG_BCN_CWMIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TBTT_SYNC_CFG_BCN_CWMIN@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x0, sp, #12
	cmp	x26, x25
	b.ne	LBB0_3
; %bb.2:
	mov	w2, #0
	bl	_rt2x00_set_field32
Lloh14:
	adrp	x8, _TBTT_SYNC_CFG_BCN_AIFSN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TBTT_SYNC_CFG_BCN_AIFSN@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field32
Lloh17:
	adrp	x8, _TBTT_SYNC_CFG_BCN_EXP_WIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TBTT_SYNC_CFG_BCN_EXP_WIN@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #32
	bl	_rt2x00_set_field32
Lloh20:
	adrp	x8, _TBTT_SYNC_CFG_TBTT_ADJUST@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TBTT_SYNC_CFG_TBTT_ADJUST@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	b	LBB0_4
LBB0_3:
	mov	w2, #4
	bl	_rt2x00_set_field32
Lloh23:
	adrp	x8, _TBTT_SYNC_CFG_BCN_AIFSN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TBTT_SYNC_CFG_BCN_AIFSN@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #2
	bl	_rt2x00_set_field32
Lloh26:
	adrp	x8, _TBTT_SYNC_CFG_BCN_EXP_WIN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TBTT_SYNC_CFG_BCN_EXP_WIN@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #32
	bl	_rt2x00_set_field32
Lloh29:
	adrp	x8, _TBTT_SYNC_CFG_TBTT_ADJUST@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TBTT_SYNC_CFG_TBTT_ADJUST@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #16
LBB0_4:
	bl	_rt2x00_set_field32
	ldr	w1, [x24]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2800_register_write
LBB0_5:
Lloh32:
	adrp	x8, _CONFIG_UPDATE_MAC@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CONFIG_UPDATE_MAC@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.6:
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.7:
	ldrsw	x8, [x20]
	ldr	x9, [x22]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x0, x1, [x20, #8]
	mov	w2, #8
	bl	_memcpy
	mov	w22, #1
	b	LBB0_10
LBB0_9:
	mov	w22, #0
LBB0_10:
	ldr	x0, [x20, #16]
	bl	_is_zero_ether_addr
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	x8, [x20, #16]
	ldr	x0, [x8, #8]
	bl	_le32_to_cpu
	str	w0, [sp, #12]
Lloh35:
	adrp	x8, _MAC_ADDR_DW1_UNICAST_TO_ME_MASK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MAC_ADDR_DW1_UNICAST_TO_ME_MASK@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #255
	bl	_rt2x00_set_field32
	ldr	w0, [sp, #12]
	bl	_cpu_to_le32
	ldr	x8, [x20, #16]
	str	x0, [x8, #8]
LBB0_12:
Lloh38:
	adrp	x8, _MAC_ADDR_DW0@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MAC_ADDR_DW0@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	ldr	x2, [x20, #16]
	mov	x0, x19
	mov	w3, #8
	bl	_rt2800_register_multiwrite
	b	LBB0_14
LBB0_13:
	mov	w22, #0
LBB0_14:
Lloh41:
	adrp	x8, _CONFIG_UPDATE_BSSID@GOTPAGE
Lloh42:
	ldr	x8, [x8, _CONFIG_UPDATE_BSSID@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	and	w8, w8, w21
	orr	w8, w8, w22
	cbz	w8, LBB0_18
; %bb.15:
	ldr	x0, [x20, #8]
	bl	_is_zero_ether_addr
	cbnz	w0, LBB0_17
; %bb.16:
	ldr	x8, [x20, #8]
	ldr	x0, [x8, #8]
	bl	_le32_to_cpu
	str	w0, [sp, #12]
Lloh44:
	adrp	x8, _MAC_BSSID_DW1_BSS_ID_MASK@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MAC_BSSID_DW1_BSS_ID_MASK@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #3
	bl	_rt2x00_set_field32
Lloh47:
	adrp	x8, _MAC_BSSID_DW1_BSS_BCN_NUM@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MAC_BSSID_DW1_BSS_BCN_NUM@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field32
	ldr	w0, [sp, #12]
	bl	_cpu_to_le32
	ldr	x8, [x20, #8]
	str	x0, [x8, #8]
LBB0_17:
Lloh50:
	adrp	x8, _MAC_BSSID_DW0@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MAC_BSSID_DW0@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	ldr	x2, [x20, #8]
	mov	x0, x19
	mov	w3, #8
	bl	_rt2800_register_multiwrite
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_UPDATE_TYPE,4,2         ; @CONFIG_UPDATE_TYPE
	.comm	_BCN_TIME_CFG,4,2               ; @BCN_TIME_CFG
	.comm	_BCN_TIME_CFG_TSF_SYNC,4,2      ; @BCN_TIME_CFG_TSF_SYNC
	.comm	_TSF_SYNC_AP_NONE,8,3           ; @TSF_SYNC_AP_NONE
	.comm	_TBTT_SYNC_CFG,4,2              ; @TBTT_SYNC_CFG
	.comm	_TBTT_SYNC_CFG_BCN_CWMIN,4,2    ; @TBTT_SYNC_CFG_BCN_CWMIN
	.comm	_TBTT_SYNC_CFG_BCN_AIFSN,4,2    ; @TBTT_SYNC_CFG_BCN_AIFSN
	.comm	_TBTT_SYNC_CFG_BCN_EXP_WIN,4,2  ; @TBTT_SYNC_CFG_BCN_EXP_WIN
	.comm	_TBTT_SYNC_CFG_TBTT_ADJUST,4,2  ; @TBTT_SYNC_CFG_TBTT_ADJUST
	.comm	_CONFIG_UPDATE_MAC,4,2          ; @CONFIG_UPDATE_MAC
	.comm	_MAC_ADDR_DW1_UNICAST_TO_ME_MASK,4,2 ; @MAC_ADDR_DW1_UNICAST_TO_ME_MASK
	.comm	_MAC_ADDR_DW0,4,2               ; @MAC_ADDR_DW0
	.comm	_CONFIG_UPDATE_BSSID,4,2        ; @CONFIG_UPDATE_BSSID
	.comm	_MAC_BSSID_DW1_BSS_ID_MASK,4,2  ; @MAC_BSSID_DW1_BSS_ID_MASK
	.comm	_MAC_BSSID_DW1_BSS_BCN_NUM,4,2  ; @MAC_BSSID_DW1_BSS_BCN_NUM
	.comm	_MAC_BSSID_DW0,4,2              ; @MAC_BSSID_DW0
.subsections_via_symbols
