	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt61pci_config_intf
_rt61pci_config_intf:                   ## @rt61pci_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	_CONFIG_UPDATE_TYPE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_TXRX_CSR9@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_rt2x00mmio_register_read
	movl	%eax, -36(%rbp)
	movq	_TXRX_CSR9_TSF_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	leaq	-36(%rbp), %rdi
	callq	_rt2x00_set_field32
	movl	(%r12), %esi
	movl	-36(%rbp), %edx
	movq	%r14, %rdi
	callq	_rt2x00mmio_register_write
LBB0_2:
	movq	_CONFIG_UPDATE_MAC@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	16(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_le32_to_cpu
	movl	%eax, -36(%rbp)
	movq	_MAC_CSR3_UNICAST_TO_ME_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdi
	movl	$255, %edx
	callq	_rt2x00_set_field32
	movl	-36(%rbp), %edi
	callq	_cpu_to_le32
	movq	16(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	_MAC_CSR2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rdx
	movq	%r14, %rdi
	movl	$8, %ecx
	callq	_rt2x00mmio_register_multiwrite
LBB0_4:
	movq	_CONFIG_UPDATE_BSSID@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	8(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_le32_to_cpu
	movl	%eax, -36(%rbp)
	movq	_MAC_CSR5_BSS_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdi
	movl	$3, %edx
	callq	_rt2x00_set_field32
	movl	-36(%rbp), %edi
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	_MAC_CSR4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	movq	%r14, %rdi
	movl	$8, %ecx
	callq	_rt2x00mmio_register_multiwrite
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_UPDATE_TYPE,4,2         ## @CONFIG_UPDATE_TYPE
	.comm	_TXRX_CSR9,4,2                  ## @TXRX_CSR9
	.comm	_TXRX_CSR9_TSF_SYNC,4,2         ## @TXRX_CSR9_TSF_SYNC
	.comm	_CONFIG_UPDATE_MAC,4,2          ## @CONFIG_UPDATE_MAC
	.comm	_MAC_CSR3_UNICAST_TO_ME_MASK,4,2 ## @MAC_CSR3_UNICAST_TO_ME_MASK
	.comm	_MAC_CSR2,4,2                   ## @MAC_CSR2
	.comm	_CONFIG_UPDATE_BSSID,4,2        ## @CONFIG_UPDATE_BSSID
	.comm	_MAC_CSR5_BSS_ID_MASK,4,2       ## @MAC_CSR5_BSS_ID_MASK
	.comm	_MAC_CSR4,4,2                   ## @MAC_CSR4
	.no_dead_strip	_rt61pci_config_intf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt61pci_config_intf
_rt61pci_config_intf:                   ; @rt61pci_config_intf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x3
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _CONFIG_UPDATE_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_UPDATE_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x22, _TXRX_CSR9@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TXRX_CSR9@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_rt2x00mmio_register_read
	str	w0, [sp, #12]
Lloh5:
	adrp	x8, _TXRX_CSR9_TSF_SYNC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TXRX_CSR9_TSF_SYNC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x20]
	add	x0, sp, #12
	bl	_rt2x00_set_field32
	ldr	w1, [x22]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00mmio_register_write
LBB0_2:
Lloh8:
	adrp	x8, _CONFIG_UPDATE_MAC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CONFIG_UPDATE_MAC@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x20, #16]
	ldr	x0, [x8, #8]
	bl	_le32_to_cpu
	str	w0, [sp, #12]
Lloh11:
	adrp	x8, _MAC_CSR3_UNICAST_TO_ME_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAC_CSR3_UNICAST_TO_ME_MASK@GOTPAGEOFF]
Lloh13:
	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]
Lloh14:
	adrp	x8, _MAC_CSR2@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAC_CSR2@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	x2, [x20, #16]
	mov	x0, x19
	mov	w3, #8
	bl	_rt2x00mmio_register_multiwrite
LBB0_4:
Lloh17:
	adrp	x8, _CONFIG_UPDATE_BSSID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CONFIG_UPDATE_BSSID@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	x0, [x8, #8]
	bl	_le32_to_cpu
	str	w0, [sp, #12]
Lloh20:
	adrp	x8, _MAC_CSR5_BSS_ID_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MAC_CSR5_BSS_ID_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #3
	bl	_rt2x00_set_field32
	ldr	w0, [sp, #12]
	bl	_cpu_to_le32
	ldr	x8, [x20, #8]
	str	x0, [x8, #8]
Lloh23:
	adrp	x8, _MAC_CSR4@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAC_CSR4@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	x2, [x20, #8]
	mov	x0, x19
	mov	w3, #8
	bl	_rt2x00mmio_register_multiwrite
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_UPDATE_TYPE,4,2         ; @CONFIG_UPDATE_TYPE
	.comm	_TXRX_CSR9,4,2                  ; @TXRX_CSR9
	.comm	_TXRX_CSR9_TSF_SYNC,4,2         ; @TXRX_CSR9_TSF_SYNC
	.comm	_CONFIG_UPDATE_MAC,4,2          ; @CONFIG_UPDATE_MAC
	.comm	_MAC_CSR3_UNICAST_TO_ME_MASK,4,2 ; @MAC_CSR3_UNICAST_TO_ME_MASK
	.comm	_MAC_CSR2,4,2                   ; @MAC_CSR2
	.comm	_CONFIG_UPDATE_BSSID,4,2        ; @CONFIG_UPDATE_BSSID
	.comm	_MAC_CSR5_BSS_ID_MASK,4,2       ; @MAC_CSR5_BSS_ID_MASK
	.comm	_MAC_CSR4,4,2                   ; @MAC_CSR4
	.no_dead_strip	_rt61pci_config_intf
.subsections_via_symbols
