	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_prepare_data
_bcm2835_prepare_data:                  ## @bcm2835_prepare_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rsi), %r14
	movq	32(%rdi), %rdi
	callq	_WARN_ON
	movq	%r14, 32(%rbx)
	testq	%r14, %r14
	je	LBB0_7
## %bb.1:
	movl	$0, (%rbx)
	movq	$0, 24(%r14)
	cmpl	$0, 24(%rbx)
	jne	LBB0_6
## %bb.2:
	movq	_SG_MITER_ATOMIC@GOTPCREL(%rip), %rax
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r14), %ecx
	jne	LBB0_3
## %bb.4:
	movq	_SG_MITER_FROM_SG@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_SG_MITER_TO_SG@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	20(%rbx), %rdi
	movl	12(%r14), %edx
	movl	16(%r14), %esi
	callq	_sg_miter_start
	movl	4(%r14), %eax
	movl	%eax, 16(%rbx)
LBB0_6:
	movq	%rbx, %rdi
	callq	_bcm2835_set_transfer_irqs
	movl	8(%r14), %edi
	movq	_SDHBCT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movl	4(%r14), %edi
	movq	_SDHBLC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SG_MITER_ATOMIC,4,2            ## @SG_MITER_ATOMIC
	.comm	_MMC_DATA_READ,4,2              ## @MMC_DATA_READ
	.comm	_SG_MITER_TO_SG,4,2             ## @SG_MITER_TO_SG
	.comm	_SG_MITER_FROM_SG,4,2           ## @SG_MITER_FROM_SG
	.comm	_SDHBCT,8,3                     ## @SDHBCT
	.comm	_SDHBLC,8,3                     ## @SDHBLC
	.no_dead_strip	_bcm2835_prepare_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_prepare_data
_bcm2835_prepare_data:                  ; @bcm2835_prepare_data
	.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, x0
	ldr	x20, [x1]
	ldr	x0, [x0, #32]
	bl	_WARN_ON
	str	x20, [x19, #32]
	cbz	x20, LBB0_4
; %bb.1:
	str	wzr, [x19]
	str	xzr, [x20, #24]
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _SG_MITER_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SG_MITER_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20]
Lloh3:
	adrp	x10, _MMC_DATA_READ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MMC_DATA_READ@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _SG_MITER_FROM_SG@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SG_MITER_FROM_SG@GOTPAGEOFF]
Lloh8:
	adrp	x12, _SG_MITER_TO_SG@GOTPAGE
Lloh9:
	ldr	x12, [x12, _SG_MITER_TO_SG@GOTPAGEOFF]
	tst	w10, w9
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x0, x19, #20
	ldp	w2, w1, [x20, #12]
	bl	_sg_miter_start
	ldr	w8, [x20, #4]
	str	w8, [x19, #16]
LBB0_3:
	mov	x0, x19
	bl	_bcm2835_set_transfer_irqs
	ldr	w0, [x20, #8]
	ldr	x8, [x19, #8]
Lloh10:
	adrp	x9, _SDHBCT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SDHBCT@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x20, #4]
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x9, _SDHBLC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SDHBLC@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SG_MITER_ATOMIC,4,2            ; @SG_MITER_ATOMIC
	.comm	_MMC_DATA_READ,4,2              ; @MMC_DATA_READ
	.comm	_SG_MITER_TO_SG,4,2             ; @SG_MITER_TO_SG
	.comm	_SG_MITER_FROM_SG,4,2           ; @SG_MITER_FROM_SG
	.comm	_SDHBCT,8,3                     ; @SDHBCT
	.comm	_SDHBLC,8,3                     ; @SDHBLC
	.no_dead_strip	_bcm2835_prepare_data
.subsections_via_symbols
