	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vub300_mmc_set_ios
_vub300_mmc_set_ios:                    ## @vub300_mmc_set_ios
	.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	%rsi, %r12
	callq	_mmc_priv
	cmpl	$0, 16(%rax)
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_kref_get
	movq	%rbx, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	movq	_MMC_POWER_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movl	$0, (%rbx)
	movl	12(%rbx), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_SET_SD_POWER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rsi
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_HZ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	$0
	pushq	$0
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	$600, %edi                      ## imm = 0x258
	callq	_msleep
	jmp	LBB0_10
LBB0_4:
	movq	_MMC_POWER_UP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	cmpl	$0, (%rbx)
	je	LBB0_6
LBB0_7:
	movq	_MMC_POWER_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %r13
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	___set_clock_speed
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	12(%rbx), %r12d
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_SET_SD_POWER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rsi
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_HZ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	subq	$8, %rsp
	movl	%r12d, %edi
	movl	%eax, %esi
	movl	$1, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	$0
	pushq	$0
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	$600, %edi                      ## imm = 0x258
	callq	_msleep
	movl	$1, (%rbx)
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_vub300_delete@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kref_put                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_POWER_OFF,8,3              ## @MMC_POWER_OFF
	.comm	_SET_SD_POWER,4,2               ## @SET_SD_POWER
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ## @USB_RECIP_DEVICE
	.comm	_HZ,4,2                         ## @HZ
	.comm	_MMC_POWER_UP,8,3               ## @MMC_POWER_UP
	.comm	_MMC_POWER_ON,8,3               ## @MMC_POWER_ON
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_vub300_delete,4,2              ## @vub300_delete
	.no_dead_strip	_vub300_mmc_set_ios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vub300_mmc_set_ios
_vub300_mmc_set_ios:                    ; @vub300_mmc_set_ios
	.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	x22, x1
	bl	_mmc_priv
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x21, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_kref_get
	add	x20, x21, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _MMC_POWER_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_POWER_OFF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w9, [x21]
	cbz	w9, LBB0_4
; %bb.3:
	str	wzr, [x21]
	ldr	w21, [x21, #12]
	mov	x0, x21
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh3:
	adrp	x8, _SET_SD_POWER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SET_SD_POWER@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _USB_RECIP_DEVICE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _USB_RECIP_DEVICE@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh14:
	ldr	w9, [x10]
	orr	w3, w8, w9
Lloh15:
	adrp	x8, _HZ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x21
	mov	w4, #0
	mov	w5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_usb_control_msg
	mov	w0, #600
	bl	_msleep
	b	LBB0_11
LBB0_4:
Lloh18:
	adrp	x9, _MMC_POWER_UP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MMC_POWER_UP@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	w9, [x21]
	cbz	w9, LBB0_10
LBB0_6:
Lloh21:
	adrp	x9, _MMC_POWER_ON@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MMC_POWER_ON@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.7:
Lloh24:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kmalloc
	cbz	x0, LBB0_11
; %bb.8:
	mov	x23, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	___set_clock_speed
	mov	x0, x23
	bl	_kfree
	b	LBB0_11
LBB0_9:
	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
LBB0_10:
	ldr	w22, [x21, #12]
	mov	x0, x22
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh27:
	adrp	x8, _SET_SD_POWER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SET_SD_POWER@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh34:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
Lloh36:
	adrp	x10, _USB_RECIP_DEVICE@GOTPAGE
Lloh37:
	ldr	x10, [x10, _USB_RECIP_DEVICE@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh38:
	ldr	w9, [x10]
	orr	w3, w8, w9
Lloh39:
	adrp	x8, _HZ@GOTPAGE
Lloh40:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	w23, #1
	mov	x0, x22
	mov	w4, #1
	mov	w5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_usb_control_msg
	mov	w0, #600
	bl	_msleep
	str	w23, [x21]
LBB0_11:
	mov	x0, x20
	bl	_mutex_unlock
Lloh42:
	adrp	x8, _vub300_delete@GOTPAGE
Lloh43:
	ldr	x8, [x8, _vub300_delete@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_kref_put
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_POWER_OFF,8,3              ; @MMC_POWER_OFF
	.comm	_SET_SD_POWER,4,2               ; @SET_SD_POWER
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ; @USB_RECIP_DEVICE
	.comm	_HZ,4,2                         ; @HZ
	.comm	_MMC_POWER_UP,8,3               ; @MMC_POWER_UP
	.comm	_MMC_POWER_ON,8,3               ; @MMC_POWER_ON
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_vub300_delete,4,2              ; @vub300_delete
	.no_dead_strip	_vub300_mmc_set_ios
.subsections_via_symbols
