	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v3d_reset_by_bridge
_v3d_reset_by_bridge:                   ## @v3d_reset_by_bridge
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_V3D_TOP_GR_BRIDGE_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_V3D_BRIDGE_READ
	movl	%eax, %ebx
	movq	_V3D_TOP_GR_BRIDGE_MAJOR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_V3D_GET_FIELD
	cmpl	$2, %eax
	jne	LBB0_2
## %bb.1:
	movq	_V3D_TOP_GR_BRIDGE_SW_INIT_0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_V3D_TOP_GR_BRIDGE_SW_INIT_0_V3D_CLK_108_SW_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_V3D_BRIDGE_WRITE
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_V3D_BRIDGE_WRITE
	movq	_V3D_HUB_AXICFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_V3D_HUB_AXICFG_MAX_LEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_V3D_WRITE                      ## TAILCALL
LBB0_2:
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_V3D_GET_FIELD
	xorl	%edi, %edi
	cmpl	$7, %eax
	setne	%dil
	callq	_WARN_ON_ONCE
	movq	_V3D_TOP_GR_BRIDGE_SW_INIT_1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_V3D_TOP_GR_BRIDGE_SW_INIT_1_V3D_CLK_108_SW_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_V3D_BRIDGE_WRITE
	movl	(%rbx), %edi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_V3D_BRIDGE_WRITE               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V3D_TOP_GR_BRIDGE_REVISION,4,2 ## @V3D_TOP_GR_BRIDGE_REVISION
	.comm	_V3D_TOP_GR_BRIDGE_MAJOR,4,2    ## @V3D_TOP_GR_BRIDGE_MAJOR
	.comm	_V3D_TOP_GR_BRIDGE_SW_INIT_0,4,2 ## @V3D_TOP_GR_BRIDGE_SW_INIT_0
	.comm	_V3D_TOP_GR_BRIDGE_SW_INIT_0_V3D_CLK_108_SW_INIT,4,2 ## @V3D_TOP_GR_BRIDGE_SW_INIT_0_V3D_CLK_108_SW_INIT
	.comm	_V3D_HUB_AXICFG,4,2             ## @V3D_HUB_AXICFG
	.comm	_V3D_HUB_AXICFG_MAX_LEN_MASK,4,2 ## @V3D_HUB_AXICFG_MAX_LEN_MASK
	.comm	_V3D_TOP_GR_BRIDGE_SW_INIT_1,4,2 ## @V3D_TOP_GR_BRIDGE_SW_INIT_1
	.comm	_V3D_TOP_GR_BRIDGE_SW_INIT_1_V3D_CLK_108_SW_INIT,4,2 ## @V3D_TOP_GR_BRIDGE_SW_INIT_1_V3D_CLK_108_SW_INIT
	.no_dead_strip	_v3d_reset_by_bridge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v3d_reset_by_bridge
_v3d_reset_by_bridge:                   ; @v3d_reset_by_bridge
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _V3D_TOP_GR_BRIDGE_REVISION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V3D_TOP_GR_BRIDGE_REVISION@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_V3D_BRIDGE_READ
	mov	x19, x0
Lloh3:
	adrp	x20, _V3D_TOP_GR_BRIDGE_MAJOR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _V3D_TOP_GR_BRIDGE_MAJOR@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_V3D_GET_FIELD
	cmp	w0, #2
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x19, _V3D_TOP_GR_BRIDGE_SW_INIT_0@GOTPAGE
Lloh6:
	ldr	x19, [x19, _V3D_TOP_GR_BRIDGE_SW_INIT_0@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh7:
	adrp	x8, _V3D_TOP_GR_BRIDGE_SW_INIT_0_V3D_CLK_108_SW_INIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V3D_TOP_GR_BRIDGE_SW_INIT_0_V3D_CLK_108_SW_INIT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_V3D_BRIDGE_WRITE
	ldr	w0, [x19]
	mov	w1, #0
	bl	_V3D_BRIDGE_WRITE
Lloh10:
	adrp	x8, _V3D_HUB_AXICFG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V3D_HUB_AXICFG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _V3D_HUB_AXICFG_MAX_LEN_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V3D_HUB_AXICFG_MAX_LEN_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_V3D_WRITE
LBB0_2:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_V3D_GET_FIELD
	cmp	w0, #7
	cset	w0, ne
	bl	_WARN_ON_ONCE
Lloh16:
	adrp	x19, _V3D_TOP_GR_BRIDGE_SW_INIT_1@GOTPAGE
Lloh17:
	ldr	x19, [x19, _V3D_TOP_GR_BRIDGE_SW_INIT_1@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh18:
	adrp	x8, _V3D_TOP_GR_BRIDGE_SW_INIT_1_V3D_CLK_108_SW_INIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V3D_TOP_GR_BRIDGE_SW_INIT_1_V3D_CLK_108_SW_INIT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_V3D_BRIDGE_WRITE
	ldr	w0, [x19]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_V3D_BRIDGE_WRITE
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_V3D_TOP_GR_BRIDGE_REVISION,4,2 ; @V3D_TOP_GR_BRIDGE_REVISION
	.comm	_V3D_TOP_GR_BRIDGE_MAJOR,4,2    ; @V3D_TOP_GR_BRIDGE_MAJOR
	.comm	_V3D_TOP_GR_BRIDGE_SW_INIT_0,4,2 ; @V3D_TOP_GR_BRIDGE_SW_INIT_0
	.comm	_V3D_TOP_GR_BRIDGE_SW_INIT_0_V3D_CLK_108_SW_INIT,4,2 ; @V3D_TOP_GR_BRIDGE_SW_INIT_0_V3D_CLK_108_SW_INIT
	.comm	_V3D_HUB_AXICFG,4,2             ; @V3D_HUB_AXICFG
	.comm	_V3D_HUB_AXICFG_MAX_LEN_MASK,4,2 ; @V3D_HUB_AXICFG_MAX_LEN_MASK
	.comm	_V3D_TOP_GR_BRIDGE_SW_INIT_1,4,2 ; @V3D_TOP_GR_BRIDGE_SW_INIT_1
	.comm	_V3D_TOP_GR_BRIDGE_SW_INIT_1_V3D_CLK_108_SW_INIT,4,2 ; @V3D_TOP_GR_BRIDGE_SW_INIT_1_V3D_CLK_108_SW_INIT
	.no_dead_strip	_v3d_reset_by_bridge
.subsections_via_symbols
