	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g2d_hw_reset
_g2d_hw_reset:                          ## @g2d_hw_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_G2D_R@GOTPCREL(%rip), %rax
	movq	_G2D_SFRCLEAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_G2D_SOFT_RESET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	_G2D_BIT_ENGINE_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_clear_bit                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_G2D_R,4,2                      ## @G2D_R
	.comm	_G2D_SFRCLEAR,4,2               ## @G2D_SFRCLEAR
	.comm	_G2D_SOFT_RESET,8,3             ## @G2D_SOFT_RESET
	.comm	_G2D_BIT_ENGINE_BUSY,4,2        ## @G2D_BIT_ENGINE_BUSY
	.no_dead_strip	_g2d_hw_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g2d_hw_reset
_g2d_hw_reset:                          ; @g2d_hw_reset
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _G2D_R@GOTPAGE
Lloh1:
	ldr	x8, [x8, _G2D_R@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _G2D_SFRCLEAR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _G2D_SFRCLEAR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _G2D_SOFT_RESET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _G2D_SOFT_RESET@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh9:
	adrp	x8, _G2D_BIT_ENGINE_BUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _G2D_BIT_ENGINE_BUSY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_clear_bit
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_G2D_R,4,2                      ; @G2D_R
	.comm	_G2D_SFRCLEAR,4,2               ; @G2D_SFRCLEAR
	.comm	_G2D_SOFT_RESET,8,3             ; @G2D_SOFT_RESET
	.comm	_G2D_BIT_ENGINE_BUSY,4,2        ; @G2D_BIT_ENGINE_BUSY
	.no_dead_strip	_g2d_hw_reset
.subsections_via_symbols
