	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sdhost_reset
_bcm_sdhost_reset:                      ## @bcm_sdhost_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
	callq	_device_get_softc
	movq	%rax, %rbx
	movq	_HC_POWER@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_WR4
	movq	_HC_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_WR4
	movq	_HC_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_WR4
	movq	_HC_TIMEOUTCOUNTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HC_TIMEOUT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_WR4
	movq	_HC_CLOCKDIVISOR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_WR4
	movq	_HC_HOSTSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HC_HSTST_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_WR4
	movq	_HC_HOSTCONFIG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_WR4
	movq	_HC_BLOCKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_WR4
	movq	_HC_BLOCKCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_WR4
	movq	_HC_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_RD4
	movq	_HC_DBG_FIFO_THRESH_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_HC_DBG_FIFO_THRESH_READ_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %r8b
	movl	%edi, %edx
	movl	%r8d, %ecx
	shll	%cl, %edx
	movq	_HC_DBG_FIFO_THRESH_WRITE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %r9b
	movl	%r9d, %ecx
	shll	%cl, %edi
	orl	%edx, %edi
	notl	%edi
	movq	_HC_FIFO_THRESH_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%r8d, %ecx
	shll	%cl, %esi
	movq	_HC_FIFO_THRESH_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r9d, %ecx
	shll	%cl, %edx
	andl	%eax, %edi
	orl	%esi, %edx
	orl	%edi, %edx
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_WR4
	movl	$250000, %edi                   ## imm = 0x3D090
	callq	_DELAY
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_WR4
	movl	$250000, %edi                   ## imm = 0x3D090
	callq	_DELAY
	movq	_SDHCI_CARD_PRESENT@GOTPCREL(%rip), %rax
	movq	_SDHCI_CARD_STABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SDHCI_WRITE_PROTECT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	(%r15), %esi
	movq	_HC_CLOCKDIVISOR_MAXVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_WR4
	movl	(%r12), %esi
	movq	_HC_HSTCF_INT_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WR4                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HC_POWER,4,2                   ## @HC_POWER
	.comm	_HC_COMMAND,4,2                 ## @HC_COMMAND
	.comm	_HC_ARGUMENT,4,2                ## @HC_ARGUMENT
	.comm	_HC_TIMEOUTCOUNTER,4,2          ## @HC_TIMEOUTCOUNTER
	.comm	_HC_TIMEOUT_DEFAULT,4,2         ## @HC_TIMEOUT_DEFAULT
	.comm	_HC_CLOCKDIVISOR,4,2            ## @HC_CLOCKDIVISOR
	.comm	_HC_HOSTSTATUS,4,2              ## @HC_HOSTSTATUS
	.comm	_HC_HSTST_RESET,4,2             ## @HC_HSTST_RESET
	.comm	_HC_HOSTCONFIG,4,2              ## @HC_HOSTCONFIG
	.comm	_HC_BLOCKSIZE,4,2               ## @HC_BLOCKSIZE
	.comm	_HC_BLOCKCOUNT,4,2              ## @HC_BLOCKCOUNT
	.comm	_HC_DEBUG,4,2                   ## @HC_DEBUG
	.comm	_HC_DBG_FIFO_THRESH_MASK,4,2    ## @HC_DBG_FIFO_THRESH_MASK
	.comm	_HC_DBG_FIFO_THRESH_READ_SHIFT,4,2 ## @HC_DBG_FIFO_THRESH_READ_SHIFT
	.comm	_HC_DBG_FIFO_THRESH_WRITE_SHIFT,4,2 ## @HC_DBG_FIFO_THRESH_WRITE_SHIFT
	.comm	_HC_FIFO_THRESH_READ,4,2        ## @HC_FIFO_THRESH_READ
	.comm	_HC_FIFO_THRESH_WRITE,4,2       ## @HC_FIFO_THRESH_WRITE
	.comm	_SDHCI_CARD_PRESENT,4,2         ## @SDHCI_CARD_PRESENT
	.comm	_SDHCI_CARD_STABLE,4,2          ## @SDHCI_CARD_STABLE
	.comm	_SDHCI_WRITE_PROTECT,4,2        ## @SDHCI_WRITE_PROTECT
	.comm	_HC_CLOCKDIVISOR_MAXVAL,4,2     ## @HC_CLOCKDIVISOR_MAXVAL
	.comm	_HC_HSTCF_INT_BUSY,4,2          ## @HC_HSTCF_INT_BUSY
	.no_dead_strip	_bcm_sdhost_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_sdhost_reset
_bcm_sdhost_reset:                      ; @bcm_sdhost_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
	bl	_device_get_softc
	mov	x19, x0
Lloh0:
	adrp	x20, _HC_POWER@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HC_POWER@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #0
	bl	_WR4
Lloh2:
	adrp	x8, _HC_COMMAND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HC_COMMAND@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_WR4
Lloh5:
	adrp	x8, _HC_ARGUMENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HC_ARGUMENT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_WR4
Lloh8:
	adrp	x8, _HC_TIMEOUTCOUNTER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HC_TIMEOUTCOUNTER@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _HC_TIMEOUT_DEFAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HC_TIMEOUT_DEFAULT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_WR4
Lloh14:
	adrp	x21, _HC_CLOCKDIVISOR@GOTPAGE
Lloh15:
	ldr	x21, [x21, _HC_CLOCKDIVISOR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_WR4
Lloh16:
	adrp	x8, _HC_HOSTSTATUS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HC_HOSTSTATUS@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _HC_HSTST_RESET@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HC_HSTST_RESET@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_WR4
Lloh22:
	adrp	x22, _HC_HOSTCONFIG@GOTPAGE
Lloh23:
	ldr	x22, [x22, _HC_HOSTCONFIG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_WR4
Lloh24:
	adrp	x8, _HC_BLOCKSIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HC_BLOCKSIZE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_WR4
Lloh27:
	adrp	x8, _HC_BLOCKCOUNT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HC_BLOCKCOUNT@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_WR4
Lloh30:
	adrp	x23, _HC_DEBUG@GOTPAGE
Lloh31:
	ldr	x23, [x23, _HC_DEBUG@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_RD4
Lloh32:
	adrp	x8, _HC_DBG_FIFO_THRESH_MASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _HC_DBG_FIFO_THRESH_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _HC_DBG_FIFO_THRESH_READ_SHIFT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _HC_DBG_FIFO_THRESH_READ_SHIFT@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	lsl	w10, w8, w9
Lloh38:
	adrp	x11, _HC_DBG_FIFO_THRESH_WRITE_SHIFT@GOTPAGE
Lloh39:
	ldr	x11, [x11, _HC_DBG_FIFO_THRESH_WRITE_SHIFT@GOTPAGEOFF]
Lloh40:
	ldr	w11, [x11]
	lsl	w8, w8, w11
	orr	w8, w8, w10
	bic	w8, w0, w8
Lloh41:
	adrp	x10, _HC_FIFO_THRESH_READ@GOTPAGE
Lloh42:
	ldr	x10, [x10, _HC_FIFO_THRESH_READ@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
Lloh44:
	adrp	x12, _HC_FIFO_THRESH_WRITE@GOTPAGE
Lloh45:
	ldr	x12, [x12, _HC_FIFO_THRESH_WRITE@GOTPAGEOFF]
	lsl	w9, w10, w9
Lloh46:
	ldr	w10, [x12]
	lsl	w10, w10, w11
	orr	w9, w10, w9
	orr	w2, w9, w8
	ldr	w1, [x23]
	mov	x0, x19
	bl	_WR4
	mov	w0, #53392
	movk	w0, #3, lsl #16
	bl	_DELAY
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_WR4
	mov	w0, #53392
	movk	w0, #3, lsl #16
	bl	_DELAY
Lloh47:
	adrp	x8, _SDHCI_CARD_PRESENT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SDHCI_CARD_PRESENT@GOTPAGEOFF]
Lloh49:
	adrp	x9, _SDHCI_CARD_STABLE@GOTPAGE
Lloh50:
	ldr	x9, [x9, _SDHCI_CARD_STABLE@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
Lloh52:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh53:
	adrp	x9, _SDHCI_WRITE_PROTECT@GOTPAGE
Lloh54:
	ldr	x9, [x9, _SDHCI_WRITE_PROTECT@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	w1, [x21]
Lloh56:
	adrp	x8, _HC_CLOCKDIVISOR_MAXVAL@GOTPAGE
Lloh57:
	ldr	x8, [x8, _HC_CLOCKDIVISOR_MAXVAL@GOTPAGEOFF]
Lloh58:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_WR4
	ldr	w1, [x22]
Lloh59:
	adrp	x8, _HC_HSTCF_INT_BUSY@GOTPAGE
Lloh60:
	ldr	x8, [x8, _HC_HSTCF_INT_BUSY@GOTPAGEOFF]
Lloh61:
	ldr	w2, [x8]
	mov	x0, x19
	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	_WR4
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh51
	.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 AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HC_POWER,4,2                   ; @HC_POWER
	.comm	_HC_COMMAND,4,2                 ; @HC_COMMAND
	.comm	_HC_ARGUMENT,4,2                ; @HC_ARGUMENT
	.comm	_HC_TIMEOUTCOUNTER,4,2          ; @HC_TIMEOUTCOUNTER
	.comm	_HC_TIMEOUT_DEFAULT,4,2         ; @HC_TIMEOUT_DEFAULT
	.comm	_HC_CLOCKDIVISOR,4,2            ; @HC_CLOCKDIVISOR
	.comm	_HC_HOSTSTATUS,4,2              ; @HC_HOSTSTATUS
	.comm	_HC_HSTST_RESET,4,2             ; @HC_HSTST_RESET
	.comm	_HC_HOSTCONFIG,4,2              ; @HC_HOSTCONFIG
	.comm	_HC_BLOCKSIZE,4,2               ; @HC_BLOCKSIZE
	.comm	_HC_BLOCKCOUNT,4,2              ; @HC_BLOCKCOUNT
	.comm	_HC_DEBUG,4,2                   ; @HC_DEBUG
	.comm	_HC_DBG_FIFO_THRESH_MASK,4,2    ; @HC_DBG_FIFO_THRESH_MASK
	.comm	_HC_DBG_FIFO_THRESH_READ_SHIFT,4,2 ; @HC_DBG_FIFO_THRESH_READ_SHIFT
	.comm	_HC_DBG_FIFO_THRESH_WRITE_SHIFT,4,2 ; @HC_DBG_FIFO_THRESH_WRITE_SHIFT
	.comm	_HC_FIFO_THRESH_READ,4,2        ; @HC_FIFO_THRESH_READ
	.comm	_HC_FIFO_THRESH_WRITE,4,2       ; @HC_FIFO_THRESH_WRITE
	.comm	_SDHCI_CARD_PRESENT,4,2         ; @SDHCI_CARD_PRESENT
	.comm	_SDHCI_CARD_STABLE,4,2          ; @SDHCI_CARD_STABLE
	.comm	_SDHCI_WRITE_PROTECT,4,2        ; @SDHCI_WRITE_PROTECT
	.comm	_HC_CLOCKDIVISOR_MAXVAL,4,2     ; @HC_CLOCKDIVISOR_MAXVAL
	.comm	_HC_HSTCF_INT_BUSY,4,2          ; @HC_HSTCF_INT_BUSY
	.no_dead_strip	_bcm_sdhost_reset
.subsections_via_symbols
