	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jmb38x_ms_reset
_jmb38x_ms_reset:                       ## @jmb38x_ms_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	_HOST_CONTROL_RESET_REQ@GOTPCREL(%rip), %r13
	movq	_HOST_CONTROL_CLOCK_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	orl	(%r13), %r14d
	movq	_HOST_CONTROL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r12), %rdi
	callq	_readl
	orl	%eax, %r14d
	movq	(%r15), %rsi
	addq	(%r12), %rsi
	movl	%r14d, %edi
	callq	_writel
	movl	$20, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %r14d
	movq	(%r15), %rdi
	addq	(%r12), %rdi
	callq	_readl
	testl	%r14d, %eax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$20, %edi
	callq	_ndelay
	decl	%ebx
	jne	LBB0_1
## %bb.3:
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
LBB0_4:
	movq	_HOST_CONTROL_RESET@GOTPCREL(%rip), %r13
	movq	_HOST_CONTROL_CLOCK_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	orl	(%r13), %r14d
	movq	(%r15), %rdi
	addq	(%r12), %rdi
	callq	_readl
	orl	%eax, %r14d
	movq	(%r15), %rsi
	addq	(%r12), %rsi
	movl	%r14d, %edi
	callq	_writel
	movl	$20, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %r14d
	movq	(%r15), %rdi
	addq	(%r12), %rdi
	callq	_readl
	testl	%r14d, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$20, %edi
	callq	_ndelay
	decl	%ebx
	jne	LBB0_5
## %bb.7:
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_8:
	movq	_INT_STATUS_ALL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_INT_SIGNAL_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	callq	_writel
	movl	(%rbx), %edi
	movq	_INT_STATUS_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	callq	_writel
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOST_CONTROL_RESET_REQ,4,2     ## @HOST_CONTROL_RESET_REQ
	.comm	_HOST_CONTROL_CLOCK_EN,4,2      ## @HOST_CONTROL_CLOCK_EN
	.comm	_HOST_CONTROL,8,3               ## @HOST_CONTROL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset_req timeout\n"

	.comm	_HOST_CONTROL_RESET,4,2         ## @HOST_CONTROL_RESET
L_.str.1:                               ## @.str.1
	.asciz	"reset timeout\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_INT_STATUS_ALL,4,2             ## @INT_STATUS_ALL
	.comm	_INT_SIGNAL_ENABLE,8,3          ## @INT_SIGNAL_ENABLE
	.comm	_INT_STATUS_ENABLE,8,3          ## @INT_STATUS_ENABLE
	.no_dead_strip	_jmb38x_ms_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jmb38x_ms_reset
_jmb38x_ms_reset:                       ; @jmb38x_ms_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	x22, _HOST_CONTROL_RESET_REQ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HOST_CONTROL_RESET_REQ@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x21, _HOST_CONTROL_CLOCK_EN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HOST_CONTROL_CLOCK_EN@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w23, w9, w8
	ldr	x8, [x0]
Lloh4:
	adrp	x20, _HOST_CONTROL@GOTPAGE
Lloh5:
	ldr	x20, [x20, _HOST_CONTROL@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	orr	w0, w23, w0
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	w23, #20
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x22]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	tst	w0, w24
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #20
	bl	_ndelay
	subs	w23, w23, #1
	b.ne	LBB0_1
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_4:
Lloh8:
	adrp	x22, _HOST_CONTROL_RESET@GOTPAGE
Lloh9:
	ldr	x22, [x22, _HOST_CONTROL_RESET@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x21]
	orr	w21, w9, w8
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	orr	w0, w21, w0
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	w21, #20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x22]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	tst	w0, w23
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #20
	bl	_ndelay
	subs	w21, w21, #1
	b.ne	LBB0_5
; %bb.7:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x20, _INT_STATUS_ALL@GOTPAGE
Lloh16:
	ldr	x20, [x20, _INT_STATUS_ALL@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _INT_SIGNAL_ENABLE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _INT_SIGNAL_ENABLE@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x20]
	ldr	x8, [x19]
Lloh20:
	adrp	x9, _INT_STATUS_ENABLE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _INT_STATUS_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
LBB0_9:
	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
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HOST_CONTROL_RESET_REQ,4,2     ; @HOST_CONTROL_RESET_REQ
	.comm	_HOST_CONTROL_CLOCK_EN,4,2      ; @HOST_CONTROL_CLOCK_EN
	.comm	_HOST_CONTROL,8,3               ; @HOST_CONTROL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset_req timeout\n"

	.comm	_HOST_CONTROL_RESET,4,2         ; @HOST_CONTROL_RESET
l_.str.1:                               ; @.str.1
	.asciz	"reset timeout\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_INT_STATUS_ALL,4,2             ; @INT_STATUS_ALL
	.comm	_INT_SIGNAL_ENABLE,8,3          ; @INT_SIGNAL_ENABLE
	.comm	_INT_STATUS_ENABLE,8,3          ; @INT_STATUS_ENABLE
	.no_dead_strip	_jmb38x_ms_reset
.subsections_via_symbols
