	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1xmmc_set_clock
_au1xmmc_set_clock:                     ## @au1xmmc_set_clock
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_clk_get_rate
	xorl	%edx, %edx
	divl	%r14d
                                        ## kill: def $eax killed $eax def $rax
	shrl	%eax
	leal	-1(%rax), %r14d
	movq	%r15, %rdi
	callq	_HOST_CONFIG
	movl	%eax, %edi
	callq	___raw_readl
	movq	_SD_CONFIG_DIV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	andl	%r14d, %ebx
	movq	_SD_CONFIG_DE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	orl	%ecx, %ebx
	movq	%r15, %rdi
	callq	_HOST_CONFIG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	___raw_writel
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wmb                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_CONFIG_DIV,4,2              ## @SD_CONFIG_DIV
	.comm	_SD_CONFIG_DE,4,2               ## @SD_CONFIG_DE
	.no_dead_strip	_au1xmmc_set_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1xmmc_set_clock
_au1xmmc_set_clock:                     ; @au1xmmc_set_clock
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_clk_get_rate
	udiv	w8, w0, w19
	lsr	w8, w8, #1
	sub	w19, w8, #1
	mov	x0, x20
	bl	_HOST_CONFIG
	bl	___raw_readl
Lloh0:
	adrp	x8, _SD_CONFIG_DIV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SD_CONFIG_DIV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w9, w0, w8
	and	w8, w8, w19
Lloh3:
	adrp	x10, _SD_CONFIG_DE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SD_CONFIG_DE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w8, w8, w10
	orr	w19, w8, w9
	mov	x0, x20
	bl	_HOST_CONFIG
	mov	x1, x0
	mov	x0, x19
	bl	___raw_writel
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wmb
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_CONFIG_DIV,4,2              ; @SD_CONFIG_DIV
	.comm	_SD_CONFIG_DE,4,2               ; @SD_CONFIG_DE
	.no_dead_strip	_au1xmmc_set_clock
.subsections_via_symbols
