	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jmb38x_ms_set_param
_jmb38x_ms_set_param:                   ## @jmb38x_ms_set_param
	.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
	movl	%edx, %r15d
	movl	%esi, %ebx
	callq	_memstick_priv
	movq	%rax, %r14
	movq	_HOST_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movl	%eax, %r12d
	movl	$0, -44(%rbp)
	xorl	%r13d, %r13d
	cmpl	$129, %ebx
	je	LBB0_6
## %bb.1:
	cmpl	$128, %ebx
	jne	LBB0_23
## %bb.2:
	movq	_MEMSTICK_POWER_ON@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	callq	_jmb38x_ms_reset
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_23
## %bb.4:
	movq	_HOST_CONTROL_POWER_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HOST_CONTROL_CLOCK_EN@GOTPCREL(%rip), %rax
	movq	_HOST_CONTROL_HW_OC_P@GOTPCREL(%rip), %rcx
	movq	_HOST_CONTROL_TDELAY_EN@GOTPCREL(%rip), %rdx
	orl	(%rax), %edi
	orl	(%rcx), %edi
	orl	(%rdx), %edi
	orl	$7, %edi
	movq	_HOST_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	cmpl	$0, 16(%r14)
	jne	LBB0_20
## %bb.5:
	movq	_PAD_PU_PD_ON_MS_SOCK0@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_6:
	movq	_HOST_CONTROL_IF_SHIFT@GOTPCREL(%rip), %rbx
	movb	(%rbx), %cl
	movl	$3, %r13d
	shll	%cl, %r13d
	notl	%r13d
	movq	(%r14), %rax
	movq	(%rax), %rdi
	movq	_PCI_CTL_CLOCK_DLY_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	16(%r14), %eax
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	_PCI_CTL_CLOCK_DLY_MASK_A@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_8:
	movq	_MEMSTICK_POWER_OFF@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_19
## %bb.9:
	movq	_HOST_CONTROL_POWER_EN@GOTPCREL(%rip), %rax
	movq	_HOST_CONTROL_CLOCK_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r12d
	movq	_HOST_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%r12d, %edi
	callq	_writel
	movq	_PAD_OUTPUT_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_writel
	movq	_PAD_PU_PD_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PAD_PU_PD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	(%r14), %rax
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_23
LBB0_10:
	movq	_PCI_CTL_CLOCK_DLY_MASK_B@GOTPCREL(%rip), %rcx
LBB0_11:
	andl	%r13d, %r12d
	movl	(%rcx), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movq	_MEMSTICK_SERIAL@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_14
## %bb.12:
	movq	_HOST_CONTROL_FAST_CLK@GOTPCREL(%rip), %rax
	movq	_HOST_CONTROL_REO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_HOST_CONTROL_IF_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movb	(%rbx), %cl
	shll	%cl, %edi
	notl	%edx
	andl	%edx, %r12d
	orl	%r12d, %edi
	movq	_HOST_CONTROL_REI@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_CLOCK_CONTROL_40MHZ@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %r15d
	jmp	LBB0_16
LBB0_14:
	movq	_MEMSTICK_PAR4@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_17
## %bb.15:
	movq	_HOST_CONTROL_IF_PAR4@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movb	(%rbx), %cl
	shll	%cl, %esi
	movq	_HOST_CONTROL_FAST_CLK@GOTPCREL(%rip), %rcx
	movq	_HOST_CONTROL_REO@GOTPCREL(%rip), %rdi
	orl	(%rcx), %r12d
	orl	(%rdi), %r12d
	orl	%esi, %r12d
	movq	_HOST_CONTROL_REI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%r12d, %edi
	testl	%eax, %eax
	movq	_CLOCK_CONTROL_40MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$1024, %eax                     ## imm = 0x400
	movl	$16384, %ecx                    ## imm = 0x4000
	cmovel	%eax, %ecx
	orl	%ecx, %edx
	movl	%edx, -44(%rbp)
LBB0_16:
	movq	_HOST_CONTROL@GOTPCREL(%rip), %rax
	movq	_PCI_CTL_CLOCK_DLY_ADDR@GOTPCREL(%rip), %rbx
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	_CLOCK_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%r15d, %edi
	callq	_writel
	movq	(%r14), %rax
	movq	(%rax), %rdi
	movl	(%rbx), %esi
	movl	-44(%rbp), %edx
	callq	_pci_write_config_dword
LBB0_22:
	xorl	%r13d, %r13d
	jmp	LBB0_23
LBB0_17:
	movq	_MEMSTICK_PAR8@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_19
## %bb.18:
	movq	_HOST_CONTROL_FAST_CLK@GOTPCREL(%rip), %rax
	movb	(%rbx), %cl
	movq	_HOST_CONTROL_IF_PAR8@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shll	%cl, %edx
	orl	(%rax), %r12d
	orl	%r12d, %edx
	movq	_HOST_CONTROL_REI@GOTPCREL(%rip), %rax
	movq	_HOST_CONTROL_REO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	notl	%edi
	andl	%edx, %edi
	movq	_CLOCK_CONTROL_50MHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_23:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_PAD_PU_PD_ON_MS_SOCK1@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %edi
	movq	_PAD_PU_PD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	_PAD_OUTPUT_ENABLE_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PAD_OUTPUT_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movl	$10, %edi
	callq	_msleep
	movq	(%r14), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_HOST_CONTROL,8,3               ## @HOST_CONTROL
	.comm	_CLOCK_CONTROL_40MHZ,4,2        ## @CLOCK_CONTROL_40MHZ
	.comm	_MEMSTICK_POWER_ON,4,2          ## @MEMSTICK_POWER_ON
	.comm	_HOST_CONTROL_POWER_EN,4,2      ## @HOST_CONTROL_POWER_EN
	.comm	_HOST_CONTROL_CLOCK_EN,4,2      ## @HOST_CONTROL_CLOCK_EN
	.comm	_HOST_CONTROL_HW_OC_P,4,2       ## @HOST_CONTROL_HW_OC_P
	.comm	_HOST_CONTROL_TDELAY_EN,4,2     ## @HOST_CONTROL_TDELAY_EN
	.comm	_PAD_PU_PD_ON_MS_SOCK1,4,2      ## @PAD_PU_PD_ON_MS_SOCK1
	.comm	_PAD_PU_PD_ON_MS_SOCK0,4,2      ## @PAD_PU_PD_ON_MS_SOCK0
	.comm	_PAD_PU_PD,8,3                  ## @PAD_PU_PD
	.comm	_PAD_OUTPUT_ENABLE_MS,4,2       ## @PAD_OUTPUT_ENABLE_MS
	.comm	_PAD_OUTPUT_ENABLE,8,3          ## @PAD_OUTPUT_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"power on\n"

	.comm	_MEMSTICK_POWER_OFF,4,2         ## @MEMSTICK_POWER_OFF
	.comm	_PAD_PU_PD_OFF,4,2              ## @PAD_PU_PD_OFF
L_.str.1:                               ## @.str.1
	.asciz	"power off\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HOST_CONTROL_IF_SHIFT,4,2      ## @HOST_CONTROL_IF_SHIFT
	.comm	_PCI_CTL_CLOCK_DLY_ADDR,4,2     ## @PCI_CTL_CLOCK_DLY_ADDR
	.comm	_PCI_CTL_CLOCK_DLY_MASK_B,4,2   ## @PCI_CTL_CLOCK_DLY_MASK_B
	.comm	_PCI_CTL_CLOCK_DLY_MASK_A,4,2   ## @PCI_CTL_CLOCK_DLY_MASK_A
	.comm	_MEMSTICK_SERIAL,4,2            ## @MEMSTICK_SERIAL
	.comm	_HOST_CONTROL_FAST_CLK,4,2      ## @HOST_CONTROL_FAST_CLK
	.comm	_HOST_CONTROL_REO,4,2           ## @HOST_CONTROL_REO
	.comm	_HOST_CONTROL_IF_SERIAL,4,2     ## @HOST_CONTROL_IF_SERIAL
	.comm	_HOST_CONTROL_REI,4,2           ## @HOST_CONTROL_REI
	.comm	_MEMSTICK_PAR4,4,2              ## @MEMSTICK_PAR4
	.comm	_HOST_CONTROL_IF_PAR4,4,2       ## @HOST_CONTROL_IF_PAR4
	.comm	_MEMSTICK_PAR8,4,2              ## @MEMSTICK_PAR8
	.comm	_HOST_CONTROL_IF_PAR8,4,2       ## @HOST_CONTROL_IF_PAR8
	.comm	_CLOCK_CONTROL_50MHZ,4,2        ## @CLOCK_CONTROL_50MHZ
	.comm	_CLOCK_CONTROL,8,3              ## @CLOCK_CONTROL
	.no_dead_strip	_jmb38x_ms_set_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jmb38x_ms_set_param
_jmb38x_ms_set_param:                   ; @jmb38x_ms_set_param
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x21, x1
	bl	_memstick_priv
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x22, _HOST_CONTROL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HOST_CONTROL@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	str	wzr, [sp, #12]
	cmp	w21, #129
	b.eq	LBB0_5
; %bb.1:
	mov	w8, #0
	cmp	w21, #128
	b.ne	LBB0_17
; %bb.2:
Lloh2:
	adrp	x8, _MEMSTICK_POWER_ON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MEMSTICK_POWER_ON@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_jmb38x_ms_reset
	mov	x8, x0
	cbnz	w0, LBB0_17
; %bb.4:
Lloh5:
	adrp	x8, _HOST_CONTROL_POWER_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HOST_CONTROL_POWER_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _HOST_CONTROL_CLOCK_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HOST_CONTROL_CLOCK_EN@GOTPAGEOFF]
Lloh10:
	adrp	x10, _HOST_CONTROL_HW_OC_P@GOTPAGE
Lloh11:
	ldr	x10, [x10, _HOST_CONTROL_HW_OC_P@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	ldr	w10, [x10]
Lloh14:
	adrp	x11, _HOST_CONTROL_TDELAY_EN@GOTPAGE
Lloh15:
	ldr	x11, [x11, _HOST_CONTROL_TDELAY_EN@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w0, w8, #0x7
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x19, #16]
Lloh17:
	adrp	x9, _PAD_PU_PD_ON_MS_SOCK1@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PAD_PU_PD_ON_MS_SOCK1@GOTPAGEOFF]
Lloh19:
	adrp	x10, _PAD_PU_PD_ON_MS_SOCK0@GOTPAGE
Lloh20:
	ldr	x10, [x10, _PAD_PU_PD_ON_MS_SOCK0@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh21:
	adrp	x9, _PAD_PU_PD@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PAD_PU_PD@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh24:
	adrp	x8, _PAD_OUTPUT_ENABLE_MS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PAD_OUTPUT_ENABLE_MS@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh27:
	adrp	x9, _PAD_OUTPUT_ENABLE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PAD_OUTPUT_ENABLE@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #10
	bl	_msleep
	ldr	x8, [x19]
	ldr	x0, [x8]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	b	LBB0_15
LBB0_5:
Lloh32:
	adrp	x23, _HOST_CONTROL_IF_SHIFT@GOTPAGE
Lloh33:
	ldr	x23, [x23, _HOST_CONTROL_IF_SHIFT@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	w9, #3
	lsl	w8, w9, w8
	bic	w24, w0, w8
	ldr	x8, [x19]
	ldr	x0, [x8]
Lloh34:
	adrp	x21, _PCI_CTL_CLOCK_DLY_ADDR@GOTPAGE
Lloh35:
	ldr	x21, [x21, _PCI_CTL_CLOCK_DLY_ADDR@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	w8, [x19, #16]
Lloh36:
	adrp	x9, _PCI_CTL_CLOCK_DLY_MASK_B@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PCI_CTL_CLOCK_DLY_MASK_B@GOTPAGEOFF]
Lloh38:
	adrp	x10, _PCI_CTL_CLOCK_DLY_MASK_A@GOTPAGE
Lloh39:
	ldr	x10, [x10, _PCI_CTL_CLOCK_DLY_MASK_A@GOTPAGEOFF]
	cmp	w8, #0
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	ldr	w10, [sp, #12]
	bic	w9, w10, w9
	str	w9, [sp, #12]
Lloh40:
	adrp	x10, _MEMSTICK_SERIAL@GOTPAGE
Lloh41:
	ldr	x10, [x10, _MEMSTICK_SERIAL@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	cmp	w10, w20
	b.ne	LBB0_9
; %bb.6:
Lloh43:
	adrp	x8, _HOST_CONTROL_FAST_CLK@GOTPAGE
Lloh44:
	ldr	x8, [x8, _HOST_CONTROL_FAST_CLK@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _HOST_CONTROL_REO@GOTPAGE
Lloh47:
	ldr	x9, [x9, _HOST_CONTROL_REO@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh49:
	adrp	x9, _HOST_CONTROL_IF_SERIAL@GOTPAGE
Lloh50:
	ldr	x9, [x9, _HOST_CONTROL_IF_SERIAL@GOTPAGEOFF]
	bic	w8, w24, w8
Lloh51:
	ldr	w9, [x9]
	ldr	w10, [x23]
	lsl	w9, w9, w10
Lloh52:
	adrp	x10, _HOST_CONTROL_REI@GOTPAGE
Lloh53:
	ldr	x10, [x10, _HOST_CONTROL_REI@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh54:
	ldr	w9, [x10]
	orr	w0, w8, w9
Lloh55:
	adrp	x8, _CLOCK_CONTROL_40MHZ@GOTPAGE
Lloh56:
	ldr	x8, [x8, _CLOCK_CONTROL_40MHZ@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
Lloh57:
	adrp	x8, _MEMSTICK_POWER_OFF@GOTPAGE
Lloh58:
	ldr	x8, [x8, _MEMSTICK_POWER_OFF@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_16
; %bb.8:
Lloh60:
	adrp	x8, _HOST_CONTROL_POWER_EN@GOTPAGE
Lloh61:
	ldr	x8, [x8, _HOST_CONTROL_POWER_EN@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
Lloh63:
	adrp	x9, _HOST_CONTROL_CLOCK_EN@GOTPAGE
Lloh64:
	ldr	x9, [x9, _HOST_CONTROL_CLOCK_EN@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w0, w0, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh66:
	adrp	x9, _PAD_OUTPUT_ENABLE@GOTPAGE
Lloh67:
	ldr	x9, [x9, _PAD_OUTPUT_ENABLE@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh69:
	adrp	x8, _PAD_PU_PD_OFF@GOTPAGE
Lloh70:
	ldr	x8, [x8, _PAD_PU_PD_OFF@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh72:
	adrp	x9, _PAD_PU_PD@GOTPAGE
Lloh73:
	ldr	x9, [x9, _PAD_PU_PD@GOTPAGEOFF]
Lloh74:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
	ldr	x0, [x8]
Lloh75:
	adrp	x1, l_.str.1@PAGE
Lloh76:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	b	LBB0_15
LBB0_9:
Lloh77:
	adrp	x10, _MEMSTICK_PAR4@GOTPAGE
Lloh78:
	ldr	x10, [x10, _MEMSTICK_PAR4@GOTPAGEOFF]
Lloh79:
	ldr	w10, [x10]
	cmp	w10, w20
	b.ne	LBB0_11
; %bb.10:
Lloh80:
	adrp	x10, _HOST_CONTROL_FAST_CLK@GOTPAGE
Lloh81:
	ldr	x10, [x10, _HOST_CONTROL_FAST_CLK@GOTPAGEOFF]
Lloh82:
	ldr	w10, [x10]
Lloh83:
	adrp	x11, _HOST_CONTROL_REO@GOTPAGE
Lloh84:
	ldr	x11, [x11, _HOST_CONTROL_REO@GOTPAGEOFF]
Lloh85:
	ldr	w11, [x11]
Lloh86:
	adrp	x12, _HOST_CONTROL_IF_PAR4@GOTPAGE
Lloh87:
	ldr	x12, [x12, _HOST_CONTROL_IF_PAR4@GOTPAGEOFF]
Lloh88:
	ldr	w12, [x12]
	ldr	w13, [x23]
	lsl	w12, w12, w13
	orr	w10, w10, w24
	orr	w10, w10, w11
Lloh89:
	adrp	x11, _HOST_CONTROL_REI@GOTPAGE
Lloh90:
	ldr	x11, [x11, _HOST_CONTROL_REI@GOTPAGEOFF]
	orr	w10, w10, w12
Lloh91:
	ldr	w11, [x11]
	bic	w0, w10, w11
Lloh92:
	adrp	x10, _CLOCK_CONTROL_40MHZ@GOTPAGE
Lloh93:
	ldr	x10, [x10, _CLOCK_CONTROL_40MHZ@GOTPAGEOFF]
Lloh94:
	ldr	w20, [x10]
	mov	w10, #16384
	mov	w11, #1024
	cmp	w8, #0
	csel	w8, w11, w10, eq
	orr	w8, w9, w8
	str	w8, [sp, #12]
	b	LBB0_14
LBB0_11:
Lloh95:
	adrp	x8, _MEMSTICK_PAR8@GOTPAGE
Lloh96:
	ldr	x8, [x8, _MEMSTICK_PAR8@GOTPAGEOFF]
Lloh97:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_16
; %bb.12:
Lloh98:
	adrp	x8, _HOST_CONTROL_FAST_CLK@GOTPAGE
Lloh99:
	ldr	x8, [x8, _HOST_CONTROL_FAST_CLK@GOTPAGEOFF]
Lloh100:
	ldr	w8, [x8]
	orr	w8, w8, w24
Lloh101:
	adrp	x9, _HOST_CONTROL_IF_PAR8@GOTPAGE
Lloh102:
	ldr	x9, [x9, _HOST_CONTROL_IF_PAR8@GOTPAGEOFF]
Lloh103:
	ldr	w9, [x9]
	ldr	w10, [x23]
	lsl	w9, w9, w10
	orr	w8, w8, w9
Lloh104:
	adrp	x9, _HOST_CONTROL_REI@GOTPAGE
Lloh105:
	ldr	x9, [x9, _HOST_CONTROL_REI@GOTPAGEOFF]
Lloh106:
	ldr	w9, [x9]
Lloh107:
	adrp	x10, _HOST_CONTROL_REO@GOTPAGE
Lloh108:
	ldr	x10, [x10, _HOST_CONTROL_REO@GOTPAGEOFF]
Lloh109:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w0, w8, w9
Lloh110:
	adrp	x8, _CLOCK_CONTROL_50MHZ@GOTPAGE
Lloh111:
	ldr	x8, [x8, _CLOCK_CONTROL_50MHZ@GOTPAGEOFF]
LBB0_13:
	ldr	w20, [x8]
LBB0_14:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh112:
	adrp	x9, _CLOCK_CONTROL@GOTPAGE
Lloh113:
	ldr	x9, [x9, _CLOCK_CONTROL@GOTPAGEOFF]
Lloh114:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	x8, [x19]
	ldr	x0, [x8]
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	bl	_pci_write_config_dword
LBB0_15:
	mov	w8, #0
	b	LBB0_17
LBB0_16:
Lloh115:
	adrp	x8, _EINVAL@GOTPAGE
Lloh116:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh117:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_17:
	mov	x0, x8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.cfi_endproc
                                        ; -- End function
	.comm	_HOST_CONTROL,8,3               ; @HOST_CONTROL
	.comm	_CLOCK_CONTROL_40MHZ,4,2        ; @CLOCK_CONTROL_40MHZ
	.comm	_MEMSTICK_POWER_ON,4,2          ; @MEMSTICK_POWER_ON
	.comm	_HOST_CONTROL_POWER_EN,4,2      ; @HOST_CONTROL_POWER_EN
	.comm	_HOST_CONTROL_CLOCK_EN,4,2      ; @HOST_CONTROL_CLOCK_EN
	.comm	_HOST_CONTROL_HW_OC_P,4,2       ; @HOST_CONTROL_HW_OC_P
	.comm	_HOST_CONTROL_TDELAY_EN,4,2     ; @HOST_CONTROL_TDELAY_EN
	.comm	_PAD_PU_PD_ON_MS_SOCK1,4,2      ; @PAD_PU_PD_ON_MS_SOCK1
	.comm	_PAD_PU_PD_ON_MS_SOCK0,4,2      ; @PAD_PU_PD_ON_MS_SOCK0
	.comm	_PAD_PU_PD,8,3                  ; @PAD_PU_PD
	.comm	_PAD_OUTPUT_ENABLE_MS,4,2       ; @PAD_OUTPUT_ENABLE_MS
	.comm	_PAD_OUTPUT_ENABLE,8,3          ; @PAD_OUTPUT_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"power on\n"

	.comm	_MEMSTICK_POWER_OFF,4,2         ; @MEMSTICK_POWER_OFF
	.comm	_PAD_PU_PD_OFF,4,2              ; @PAD_PU_PD_OFF
l_.str.1:                               ; @.str.1
	.asciz	"power off\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HOST_CONTROL_IF_SHIFT,4,2      ; @HOST_CONTROL_IF_SHIFT
	.comm	_PCI_CTL_CLOCK_DLY_ADDR,4,2     ; @PCI_CTL_CLOCK_DLY_ADDR
	.comm	_PCI_CTL_CLOCK_DLY_MASK_B,4,2   ; @PCI_CTL_CLOCK_DLY_MASK_B
	.comm	_PCI_CTL_CLOCK_DLY_MASK_A,4,2   ; @PCI_CTL_CLOCK_DLY_MASK_A
	.comm	_MEMSTICK_SERIAL,4,2            ; @MEMSTICK_SERIAL
	.comm	_HOST_CONTROL_FAST_CLK,4,2      ; @HOST_CONTROL_FAST_CLK
	.comm	_HOST_CONTROL_REO,4,2           ; @HOST_CONTROL_REO
	.comm	_HOST_CONTROL_IF_SERIAL,4,2     ; @HOST_CONTROL_IF_SERIAL
	.comm	_HOST_CONTROL_REI,4,2           ; @HOST_CONTROL_REI
	.comm	_MEMSTICK_PAR4,4,2              ; @MEMSTICK_PAR4
	.comm	_HOST_CONTROL_IF_PAR4,4,2       ; @HOST_CONTROL_IF_PAR4
	.comm	_MEMSTICK_PAR8,4,2              ; @MEMSTICK_PAR8
	.comm	_HOST_CONTROL_IF_PAR8,4,2       ; @HOST_CONTROL_IF_PAR8
	.comm	_CLOCK_CONTROL_50MHZ,4,2        ; @CLOCK_CONTROL_50MHZ
	.comm	_CLOCK_CONTROL,8,3              ; @CLOCK_CONTROL
	.no_dead_strip	_jmb38x_ms_set_param
.subsections_via_symbols
