	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dbri_reset
_dbri_reset:                            ## @dbri_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_D_GEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_REG0@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%r12), %rdi
	callq	_sbus_readl
	movl	%eax, %r15d
	movq	_REG2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_sbus_readl
	movl	%eax, %ebx
	movq	_REG8@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_sbus_readl
	movl	%eax, %r13d
	movq	_REG9@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_sbus_readl
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	movl	%eax, %r9d
	callq	_dprintk
	movq	_D_R@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	(%r14), %rsi
	addq	(%r12), %rsi
	callq	_sbus_writel
	movq	(%r14), %rdi
	addq	(%r12), %rdi
	callq	_sbus_readl
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movq	(%r14), %rdi
	addq	(%r12), %rdi
	callq	_sbus_readl
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rbx), %eax
	cmpl	$63, %ebx
	movl	%eax, %ebx
	jb	LBB0_2
LBB0_4:
	movq	(%r14), %rdi
	addq	(%r12), %rdi
	callq	_sbus_readl
	movq	_D_G@GOTPCREL(%rip), %rcx
	movq	_D_E@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	_D_S@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r14), %rsi
	addq	(%r12), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sbus_writel                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_D_GEN,4,2                      ## @D_GEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset 0:%x 2:%x 8:%x 9:%x\n"

	.comm	_REG0,8,3                       ## @REG0
	.comm	_REG2,8,3                       ## @REG2
	.comm	_REG8,8,3                       ## @REG8
	.comm	_REG9,8,3                       ## @REG9
	.comm	_D_R,4,2                        ## @D_R
	.comm	_D_G,4,2                        ## @D_G
	.comm	_D_E,4,2                        ## @D_E
	.comm	_D_S,4,2                        ## @D_S
	.no_dead_strip	_dbri_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dbri_reset
_dbri_reset:                            ; @dbri_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _D_GEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_GEN@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x8, [x0]
Lloh3:
	adrp	x24, _REG0@GOTPAGE
Lloh4:
	ldr	x24, [x24, _REG0@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_sbus_readl
	mov	x21, x0
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _REG2@GOTPAGE
Lloh6:
	ldr	x9, [x9, _REG2@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_sbus_readl
	mov	x22, x0
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _REG8@GOTPAGE
Lloh9:
	ldr	x9, [x9, _REG8@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_sbus_readl
	mov	x23, x0
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _REG9@GOTPAGE
Lloh12:
	ldr	x9, [x9, _REG9@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_sbus_readl
	mov	x5, x0
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	bl	_dprintk
Lloh16:
	adrp	x20, _D_R@GOTPAGE
Lloh17:
	ldr	x20, [x20, _D_R@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	x8, [x19]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_sbus_writel
	ldr	x8, [x19]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_sbus_readl
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x19]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_sbus_readl
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w21, #1
	cmp	w21, #63
	mov	x21, x8
	b.lo	LBB0_2
LBB0_4:
	ldr	x8, [x19]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_sbus_readl
Lloh18:
	adrp	x8, _D_G@GOTPAGE
Lloh19:
	ldr	x8, [x8, _D_G@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _D_E@GOTPAGE
Lloh22:
	ldr	x9, [x9, _D_E@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _D_S@GOTPAGE
Lloh25:
	ldr	x9, [x9, _D_S@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	bic	w0, w8, w9
	ldr	x8, [x19]
	ldr	x9, [x24]
	add	x1, x9, x8
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_sbus_writel
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_D_GEN,4,2                      ; @D_GEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset 0:%x 2:%x 8:%x 9:%x\n"

	.comm	_REG0,8,3                       ; @REG0
	.comm	_REG2,8,3                       ; @REG2
	.comm	_REG8,8,3                       ; @REG8
	.comm	_REG9,8,3                       ; @REG9
	.comm	_D_R,4,2                        ; @D_R
	.comm	_D_G,4,2                        ; @D_G
	.comm	_D_E,4,2                        ; @D_E
	.comm	_D_S,4,2                        ; @D_S
	.no_dead_strip	_dbri_reset
.subsections_via_symbols
