	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2500pci_config_intf
_rt2500pci_config_intf:                 ## @rt2500pci_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rdi, %r13
	movq	_CONFIG_UPDATE_TYPE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_PREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IEEE80211_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$20, %esi
	callq	_GET_DURATION
	addl	%eax, %ebx
	movq	_BCNCSR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_rt2x00mmio_register_read
	movl	%eax, -44(%rbp)
	movq	_BCNCSR1_PRELOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_rt2x00_set_field32
	movq	_BCNCSR1_BEACON_CWMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_rt2x00_set_field32
	movq	_BCNCSR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	callq	_rt2x00mmio_register_write
	movq	_CSR14@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_rt2x00mmio_register_read
	movl	%eax, -44(%rbp)
	movq	_CSR14_TSF_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r12, %rdi
	callq	_rt2x00_set_field32
	movl	(%rbx), %esi
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	callq	_rt2x00mmio_register_write
LBB0_2:
	movq	_CONFIG_UPDATE_MAC@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_CSR3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	movq	%r13, %rdi
	movl	$4, %ecx
	callq	_rt2x00mmio_register_multiwrite
LBB0_4:
	movq	_CONFIG_UPDATE_BSSID@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_CSR5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	movq	%r13, %rdi
	movl	$4, %ecx
	callq	_rt2x00mmio_register_multiwrite
LBB0_6:
	addq	$24, %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	_PREAMBLE,4,2                   ## @PREAMBLE
	.comm	_IEEE80211_HEADER,4,2           ## @IEEE80211_HEADER
	.comm	_BCNCSR1,4,2                    ## @BCNCSR1
	.comm	_BCNCSR1_PRELOAD,4,2            ## @BCNCSR1_PRELOAD
	.comm	_BCNCSR1_BEACON_CWMIN,4,2       ## @BCNCSR1_BEACON_CWMIN
	.comm	_CSR14,4,2                      ## @CSR14
	.comm	_CSR14_TSF_SYNC,4,2             ## @CSR14_TSF_SYNC
	.comm	_CONFIG_UPDATE_MAC,4,2          ## @CONFIG_UPDATE_MAC
	.comm	_CSR3,4,2                       ## @CSR3
	.comm	_CONFIG_UPDATE_BSSID,4,2        ## @CONFIG_UPDATE_BSSID
	.comm	_CSR5,4,2                       ## @CSR5
	.no_dead_strip	_rt2500pci_config_intf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2500pci_config_intf
_rt2500pci_config_intf:                 ; @rt2500pci_config_intf
	.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	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:
	ldr	x23, [x19]
Lloh3:
	adrp	x8, _PREAMBLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PREAMBLE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _IEEE80211_HEADER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_HEADER@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #20
	bl	_GET_DURATION
	add	w22, w0, w22
Lloh9:
	adrp	x24, _BCNCSR1@GOTPAGE
Lloh10:
	ldr	x24, [x24, _BCNCSR1@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rt2x00mmio_register_read
	str	w0, [sp, #12]
Lloh11:
	adrp	x8, _BCNCSR1_PRELOAD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BCNCSR1_PRELOAD@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	x2, x22
	bl	_rt2x00_set_field32
Lloh14:
	adrp	x8, _BCNCSR1_BEACON_CWMIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BCNCSR1_BEACON_CWMIN@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [x23]
	add	x0, sp, #12
	bl	_rt2x00_set_field32
	ldr	w1, [x24]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2x00mmio_register_write
Lloh17:
	adrp	x22, _CSR14@GOTPAGE
Lloh18:
	ldr	x22, [x22, _CSR14@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_rt2x00mmio_register_read
	str	w0, [sp, #12]
Lloh19:
	adrp	x8, _CSR14_TSF_SYNC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CSR14_TSF_SYNC@GOTPAGEOFF]
Lloh21:
	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:
Lloh22:
	adrp	x8, _CONFIG_UPDATE_MAC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CONFIG_UPDATE_MAC@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
Lloh25:
	adrp	x8, _CSR3@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CSR3@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	x0, x19
	mov	w3, #4
	bl	_rt2x00mmio_register_multiwrite
LBB0_4:
Lloh28:
	adrp	x8, _CONFIG_UPDATE_BSSID@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CONFIG_UPDATE_BSSID@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
Lloh31:
	adrp	x8, _CSR5@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CSR5@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	w3, #4
	bl	_rt2x00mmio_register_multiwrite
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_UPDATE_TYPE,4,2         ; @CONFIG_UPDATE_TYPE
	.comm	_PREAMBLE,4,2                   ; @PREAMBLE
	.comm	_IEEE80211_HEADER,4,2           ; @IEEE80211_HEADER
	.comm	_BCNCSR1,4,2                    ; @BCNCSR1
	.comm	_BCNCSR1_PRELOAD,4,2            ; @BCNCSR1_PRELOAD
	.comm	_BCNCSR1_BEACON_CWMIN,4,2       ; @BCNCSR1_BEACON_CWMIN
	.comm	_CSR14,4,2                      ; @CSR14
	.comm	_CSR14_TSF_SYNC,4,2             ; @CSR14_TSF_SYNC
	.comm	_CONFIG_UPDATE_MAC,4,2          ; @CONFIG_UPDATE_MAC
	.comm	_CSR3,4,2                       ; @CSR3
	.comm	_CONFIG_UPDATE_BSSID,4,2        ; @CONFIG_UPDATE_BSSID
	.comm	_CSR5,4,2                       ; @CSR5
	.no_dead_strip	_rt2500pci_config_intf
.subsections_via_symbols
