	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usdhi6_timeout_set
_usdhi6_timeout_set:                    ## @usdhi6_timeout_set
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	(%rbx), %rcx
	movl	(%rdi), %eax
	cltq
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	imulq	$1125899907, %rax, %rdx         ## imm = 0x431BDE83
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$50, %rdx
	addl	%eax, %edx
	movslq	(%rcx), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rsi
	shrq	$63, %rsi
	sarq	$38, %rax
	addl	%esi, %eax
	imull	%edx, %eax
	addl	4(%rcx), %eax
	jmp	LBB0_3
LBB0_1:
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movq	8(%rbx), %rcx
	imull	(%rcx), %eax
LBB0_3:
	movslq	%eax, %r15
	leal	-134217729(%r15), %ecx
	movl	$14, %r12d
	cmpl	$-134217728, %ecx               ## imm = 0xF8000000
	jb	LBB0_6
## %bb.4:
	xorl	%r12d, %r12d
	cmpl	$8192, %eax                     ## imm = 0x2000
	jb	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_order_base_2
	movl	%eax, %r12d
	addl	$-13, %r12d
LBB0_6:
	movl	4(%r14), %edi
	callq	_mmc_dev
	cmpq	$0, (%rbx)
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rcx, %rdx
	movl	(%r14), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movq	%r15, %rcx
	callq	_dev_dbg
	movq	_USDHI6_SD_OPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_USDHI6_SD_OPTION_TIMEOUT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_usdhi6_read
	movq	_USDHI6_SD_OPTION_TIMEOUT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	orl	%r12d, %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usdhi6_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set %s timeout %lu ticks @ %lu Hz\n"

L_.str.1:                               ## @.str.1
	.asciz	"data"

L_.str.2:                               ## @.str.2
	.asciz	"cmd"

	.comm	_USDHI6_SD_OPTION,4,2           ## @USDHI6_SD_OPTION
	.comm	_USDHI6_SD_OPTION_TIMEOUT_SHIFT,4,2 ## @USDHI6_SD_OPTION_TIMEOUT_SHIFT
	.comm	_USDHI6_SD_OPTION_TIMEOUT_MASK,4,2 ## @USDHI6_SD_OPTION_TIMEOUT_MASK
	.no_dead_strip	_usdhi6_timeout_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usdhi6_timeout_set
_usdhi6_timeout_set:                    ; @usdhi6_timeout_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x21, [x0, #8]
	ldr	x8, [x21]
	ldr	w9, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w10, #56963
	movk	w10, #17179, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #50
	add	w9, w9, w10
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	ldp	w11, w8, [x8]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	mul	x10, x11, x10
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	madd	w8, w10, w9, w8
	b	LBB0_3
LBB0_2:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w9, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	ldr	x9, [x21, #8]
	ldr	w9, [x9]
	mul	w8, w9, w8
LBB0_3:
	sxtw	x20, w8
	mov	w9, #-134217729
	add	w8, w8, w9
	lsr	w8, w8, #27
	cmp	w8, #31
	b.hs	LBB0_5
; %bb.4:
	mov	w22, #14
	b	LBB0_8
LBB0_5:
	cmp	w20, #2, lsl #12                ; =8192
	b.hs	LBB0_7
; %bb.6:
	mov	w22, #0
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_order_base_2
	sub	w22, w0, #13
LBB0_8:
	ldr	w0, [x19, #4]
	bl	_mmc_dev
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
	ldr	x9, [x21]
Lloh2:
	adrp	x10, l_.str.2@PAGE
Lloh3:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x9, #0
	csel	x2, x10, x8, eq
	ldr	w4, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_dev_dbg
Lloh6:
	adrp	x8, _USDHI6_SD_OPTION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _USDHI6_SD_OPTION@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
Lloh9:
	adrp	x8, _USDHI6_SD_OPTION_TIMEOUT_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USDHI6_SD_OPTION_TIMEOUT_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w21, w22, w8
	mov	x0, x19
	mov	x1, x20
	bl	_usdhi6_read
Lloh12:
	adrp	x8, _USDHI6_SD_OPTION_TIMEOUT_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _USDHI6_SD_OPTION_TIMEOUT_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w8, w0, w8
	orr	w2, w8, w21
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_usdhi6_write
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set %s timeout %lu ticks @ %lu Hz\n"

l_.str.1:                               ; @.str.1
	.asciz	"data"

l_.str.2:                               ; @.str.2
	.asciz	"cmd"

	.comm	_USDHI6_SD_OPTION,4,2           ; @USDHI6_SD_OPTION
	.comm	_USDHI6_SD_OPTION_TIMEOUT_SHIFT,4,2 ; @USDHI6_SD_OPTION_TIMEOUT_SHIFT
	.comm	_USDHI6_SD_OPTION_TIMEOUT_MASK,4,2 ; @USDHI6_SD_OPTION_TIMEOUT_MASK
	.no_dead_strip	_usdhi6_timeout_set
.subsections_via_symbols
