	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uninorth_tlbflush
_uninorth_tlbflush:                     ## @uninorth_tlbflush
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_UNI_N_CFG_GART_ENABLE@GOTPCREL(%rip), %rax
	movq	_is_u3@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	$0, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_U3_N_CFG_GART_PERFRD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	orl	(%rax), %ebx
	movq	_agp_bridge@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_UNI_N_CFG_GART_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_UNI_N_CFG_GART_INVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%ebx, %edx
	callq	_pci_write_config_dword
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	%ebx, %edx
	callq	_pci_write_config_dword
	movq	_uninorth_rev@GOTPCREL(%rip), %rax
	cmpl	$48, (%rax)
	jg	LBB0_3
## %bb.4:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movq	_UNI_N_CFG_GART_2xRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%ebx, %edx
	callq	_pci_write_config_dword
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_write_config_dword         ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNI_N_CFG_GART_ENABLE,4,2      ## @UNI_N_CFG_GART_ENABLE
	.comm	_is_u3,8,3                      ## @is_u3
	.comm	_U3_N_CFG_GART_PERFRD,4,2       ## @U3_N_CFG_GART_PERFRD
	.comm	_agp_bridge,8,3                 ## @agp_bridge
	.comm	_UNI_N_CFG_GART_CTRL,4,2        ## @UNI_N_CFG_GART_CTRL
	.comm	_UNI_N_CFG_GART_INVAL,4,2       ## @UNI_N_CFG_GART_INVAL
	.comm	_uninorth_rev,4,2               ## @uninorth_rev
	.comm	_UNI_N_CFG_GART_2xRESET,4,2     ## @UNI_N_CFG_GART_2xRESET
	.no_dead_strip	_uninorth_tlbflush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uninorth_tlbflush
_uninorth_tlbflush:                     ; @uninorth_tlbflush
	.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
Lloh0:
	adrp	x8, _UNI_N_CFG_GART_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UNI_N_CFG_GART_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _is_u3@GOTPAGE
Lloh4:
	ldr	x9, [x9, _is_u3@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _U3_N_CFG_GART_PERFRD@GOTPAGE
Lloh7:
	ldr	x10, [x10, _U3_N_CFG_GART_PERFRD@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w19, w9, w8
Lloh9:
	adrp	x20, _agp_bridge@GOTPAGE
Lloh10:
	ldr	x20, [x20, _agp_bridge@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh11:
	adrp	x21, _UNI_N_CFG_GART_CTRL@GOTPAGE
Lloh12:
	ldr	x21, [x21, _UNI_N_CFG_GART_CTRL@GOTPAGEOFF]
	ldr	w0, [x8]
	ldr	w1, [x21]
Lloh13:
	adrp	x8, _UNI_N_CFG_GART_INVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UNI_N_CFG_GART_INVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w2, w8, w19
	bl	_pci_write_config_dword
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	w1, [x21]
	mov	x2, x19
	bl	_pci_write_config_dword
Lloh16:
	adrp	x8, _uninorth_rev@GOTPAGE
Lloh17:
	ldr	x8, [x8, _uninorth_rev@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w8, #48
	b.gt	LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	w1, [x21]
Lloh19:
	adrp	x8, _UNI_N_CFG_GART_2xRESET@GOTPAGE
Lloh20:
	ldr	x8, [x8, _UNI_N_CFG_GART_2xRESET@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	orr	w2, w8, w19
	bl	_pci_write_config_dword
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	w1, [x21]
	mov	x2, x19
	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
	b	_pci_write_config_dword
LBB0_2:
	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	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_UNI_N_CFG_GART_ENABLE,4,2      ; @UNI_N_CFG_GART_ENABLE
	.comm	_is_u3,8,3                      ; @is_u3
	.comm	_U3_N_CFG_GART_PERFRD,4,2       ; @U3_N_CFG_GART_PERFRD
	.comm	_agp_bridge,8,3                 ; @agp_bridge
	.comm	_UNI_N_CFG_GART_CTRL,4,2        ; @UNI_N_CFG_GART_CTRL
	.comm	_UNI_N_CFG_GART_INVAL,4,2       ; @UNI_N_CFG_GART_INVAL
	.comm	_uninorth_rev,4,2               ; @uninorth_rev
	.comm	_UNI_N_CFG_GART_2xRESET,4,2     ; @UNI_N_CFG_GART_2xRESET
	.no_dead_strip	_uninorth_tlbflush
.subsections_via_symbols
