	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_reset_internal
_bcm2835_reset_internal:                ## @bcm2835_reset_internal
	.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, %rbx
	movq	_SDVDD_POWER_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SDVDD@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	_SDCMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_SDARG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_SDTOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	$15728640, %edi                 ## imm = 0xF00000
	callq	_writel
	movq	_SDCDIV@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_SDHSTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	$2040, %edi                     ## imm = 0x7F8
	callq	_writel
	movq	_SDHCFG@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_SDHBCT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_SDHBLC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_SDEDM@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_SDEDM_THRESHOLD_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_SDEDM_READ_THRESHOLD_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %dil
	movl	%edx, %esi
	movl	%edi, %ecx
	shll	%cl, %esi
	movq	_SDEDM_WRITE_THRESHOLD_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %r8b
	movl	%r8d, %ecx
	shll	%cl, %edx
	orl	%esi, %edx
	movq	_FIFO_READ_THRESHOLD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%edi, %ecx
	shll	%cl, %esi
	notl	%edx
	andl	%eax, %edx
	movq	_FIFO_WRITE_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r8d, %ecx
	shll	%cl, %edi
	orl	%esi, %edi
	orl	%edx, %edi
	movq	(%r13), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movl	$20, %edi
	callq	_msleep
	movq	_SDVDD_POWER_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movl	$20, %edi
	callq	_msleep
	movq	$0, 16(%rbx)
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movl	4(%rbx), %edi
	movq	(%r15), %rsi
	addq	8(%rbx), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDVDD_POWER_OFF,4,2            ## @SDVDD_POWER_OFF
	.comm	_SDVDD,8,3                      ## @SDVDD
	.comm	_SDCMD,8,3                      ## @SDCMD
	.comm	_SDARG,8,3                      ## @SDARG
	.comm	_SDTOUT,8,3                     ## @SDTOUT
	.comm	_SDCDIV,8,3                     ## @SDCDIV
	.comm	_SDHSTS,8,3                     ## @SDHSTS
	.comm	_SDHCFG,8,3                     ## @SDHCFG
	.comm	_SDHBCT,8,3                     ## @SDHBCT
	.comm	_SDHBLC,8,3                     ## @SDHBLC
	.comm	_SDEDM,8,3                      ## @SDEDM
	.comm	_SDEDM_THRESHOLD_MASK,4,2       ## @SDEDM_THRESHOLD_MASK
	.comm	_SDEDM_READ_THRESHOLD_SHIFT,4,2 ## @SDEDM_READ_THRESHOLD_SHIFT
	.comm	_SDEDM_WRITE_THRESHOLD_SHIFT,4,2 ## @SDEDM_WRITE_THRESHOLD_SHIFT
	.comm	_FIFO_READ_THRESHOLD,4,2        ## @FIFO_READ_THRESHOLD
	.comm	_FIFO_WRITE_THRESHOLD,4,2       ## @FIFO_WRITE_THRESHOLD
	.comm	_SDVDD_POWER_ON,4,2             ## @SDVDD_POWER_ON
	.no_dead_strip	_bcm2835_reset_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_reset_internal
_bcm2835_reset_internal:                ; @bcm2835_reset_internal
	.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, _SDVDD_POWER_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDVDD_POWER_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x20, _SDVDD@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SDVDD@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _SDCMD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SDCMD@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _SDARG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SDARG@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x9, _SDTOUT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SDTOUT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #15728640
	bl	_writel
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x21, _SDCDIV@GOTPAGE
Lloh15:
	ldr	x21, [x21, _SDCDIV@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #8]
Lloh16:
	adrp	x9, _SDHSTS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SDHSTS@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #2040
	bl	_writel
	ldr	x8, [x19, #8]
Lloh19:
	adrp	x22, _SDHCFG@GOTPAGE
Lloh20:
	ldr	x22, [x22, _SDHCFG@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #8]
Lloh21:
	adrp	x9, _SDHBCT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SDHBCT@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #8]
Lloh24:
	adrp	x9, _SDHBLC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SDHBLC@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #8]
Lloh27:
	adrp	x23, _SDEDM@GOTPAGE
Lloh28:
	ldr	x23, [x23, _SDEDM@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
Lloh29:
	adrp	x8, _SDEDM_THRESHOLD_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SDEDM_THRESHOLD_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _SDEDM_READ_THRESHOLD_SHIFT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _SDEDM_READ_THRESHOLD_SHIFT@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
Lloh35:
	adrp	x10, _SDEDM_WRITE_THRESHOLD_SHIFT@GOTPAGE
Lloh36:
	ldr	x10, [x10, _SDEDM_WRITE_THRESHOLD_SHIFT@GOTPAGEOFF]
	lsl	w11, w8, w9
Lloh37:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w8, w8, w11
Lloh38:
	adrp	x11, _FIFO_READ_THRESHOLD@GOTPAGE
Lloh39:
	ldr	x11, [x11, _FIFO_READ_THRESHOLD@GOTPAGEOFF]
	bic	w8, w0, w8
Lloh40:
	ldr	w11, [x11]
	lsl	w9, w11, w9
Lloh41:
	adrp	x11, _FIFO_WRITE_THRESHOLD@GOTPAGE
Lloh42:
	ldr	x11, [x11, _FIFO_WRITE_THRESHOLD@GOTPAGEOFF]
Lloh43:
	ldr	w11, [x11]
	lsl	w10, w11, w10
	orr	w9, w10, w9
	orr	w0, w9, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #20
	bl	_msleep
Lloh44:
	adrp	x8, _SDVDD_POWER_ON@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SDVDD_POWER_ON@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #20
	bl	_msleep
	str	xzr, [x19, #16]
	ldr	w0, [x19]
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19, #4]
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	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	_writel
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	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
	.cfi_endproc
                                        ; -- End function
	.comm	_SDVDD_POWER_OFF,4,2            ; @SDVDD_POWER_OFF
	.comm	_SDVDD,8,3                      ; @SDVDD
	.comm	_SDCMD,8,3                      ; @SDCMD
	.comm	_SDARG,8,3                      ; @SDARG
	.comm	_SDTOUT,8,3                     ; @SDTOUT
	.comm	_SDCDIV,8,3                     ; @SDCDIV
	.comm	_SDHSTS,8,3                     ; @SDHSTS
	.comm	_SDHCFG,8,3                     ; @SDHCFG
	.comm	_SDHBCT,8,3                     ; @SDHBCT
	.comm	_SDHBLC,8,3                     ; @SDHBLC
	.comm	_SDEDM,8,3                      ; @SDEDM
	.comm	_SDEDM_THRESHOLD_MASK,4,2       ; @SDEDM_THRESHOLD_MASK
	.comm	_SDEDM_READ_THRESHOLD_SHIFT,4,2 ; @SDEDM_READ_THRESHOLD_SHIFT
	.comm	_SDEDM_WRITE_THRESHOLD_SHIFT,4,2 ; @SDEDM_WRITE_THRESHOLD_SHIFT
	.comm	_FIFO_READ_THRESHOLD,4,2        ; @FIFO_READ_THRESHOLD
	.comm	_FIFO_WRITE_THRESHOLD,4,2       ; @FIFO_WRITE_THRESHOLD
	.comm	_SDVDD_POWER_ON,4,2             ; @SDVDD_POWER_ON
	.no_dead_strip	_bcm2835_reset_internal
.subsections_via_symbols
