	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_set_ios
_bcm2835_set_ios:                       ## @bcm2835_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_mmc_priv
	movq	%rax, %rbx
	movq	%rax, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	cmpq	(%rbx), %rsi
	je	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_bcm2835_set_clock
	movq	(%r15), %rax
	movq	%rax, (%rbx)
LBB0_3:
	movq	_SDHCFG_WIDE_EXT_BUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	notl	%ecx
	movl	24(%rbx), %edi
	andl	%edi, %ecx
	movq	8(%r15), %rdx
	movq	_MMC_BUS_WIDTH_4@GOTPCREL(%rip), %rsi
	orl	%eax, %edi
	cmpq	(%rsi), %rdx
	cmovnel	%ecx, %edi
	movq	_SDHCFG_WIDE_INT_BUS@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_SDHCFG_SLOW_CARD@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, 24(%rbx)
	movq	_SDHCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCFG_WIDE_EXT_BUS,4,2        ## @SDHCFG_WIDE_EXT_BUS
	.comm	_MMC_BUS_WIDTH_4,8,3            ## @MMC_BUS_WIDTH_4
	.comm	_SDHCFG_WIDE_INT_BUS,4,2        ## @SDHCFG_WIDE_INT_BUS
	.comm	_SDHCFG_SLOW_CARD,4,2           ## @SDHCFG_SLOW_CARD
	.comm	_SDHCFG,8,3                     ## @SDHCFG
	.no_dead_strip	_bcm2835_set_ios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_set_ios
_bcm2835_set_ios:                       ; @bcm2835_set_ios
	.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	x21, x1
	bl	_mmc_priv
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x1, [x21]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	cmp	x1, x8
	b.eq	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_bcm2835_set_clock
	ldr	x8, [x21]
	str	x8, [x20]
LBB0_3:
Lloh0:
	adrp	x8, _SDHCFG_WIDE_EXT_BUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCFG_WIDE_EXT_BUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20, #24]
	bic	w10, w9, w8
	ldr	x11, [x21, #8]
Lloh3:
	adrp	x12, _MMC_BUS_WIDTH_4@GOTPAGE
Lloh4:
	ldr	x12, [x12, _MMC_BUS_WIDTH_4@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	orr	w8, w9, w8
	cmp	x11, x12
	csel	w8, w8, w10, eq
Lloh6:
	adrp	x9, _SDHCFG_WIDE_INT_BUS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SDHCFG_WIDE_INT_BUS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _SDHCFG_SLOW_CARD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SDHCFG_SLOW_CARD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w9, w8
	str	w0, [x20, #24]
	ldr	x8, [x20, #16]
Lloh12:
	adrp	x9, _SDHCFG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SDHCFG@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	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	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCFG_WIDE_EXT_BUS,4,2        ; @SDHCFG_WIDE_EXT_BUS
	.comm	_MMC_BUS_WIDTH_4,8,3            ; @MMC_BUS_WIDTH_4
	.comm	_SDHCFG_WIDE_INT_BUS,4,2        ; @SDHCFG_WIDE_INT_BUS
	.comm	_SDHCFG_SLOW_CARD,4,2           ; @SDHCFG_SLOW_CARD
	.comm	_SDHCFG,8,3                     ; @SDHCFG
	.no_dead_strip	_bcm2835_set_ios
.subsections_via_symbols
