	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_i2c_start_transfer
_bcm2835_i2c_start_transfer:            ## @bcm2835_i2c_start_transfer
	.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	(%rdi), %ecx
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	_BCM2835_I2C_C_ST@GOTPCREL(%rip), %rdx
	movq	_BCM2835_I2C_C_I2CEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rdx), %eax
	leal	-1(%rcx), %edx
	movl	%edx, (%rdi)
	movl	12(%r15), %edx
	movl	%edx, 8(%rdi)
	movl	(%r15), %edx
	movl	%edx, 4(%rdi)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	4(%r15), %edx
	jne	LBB0_2
## %bb.3:
	movq	_BCM2835_I2C_C_INTT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	jmp	LBB0_4
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_BCM2835_I2C_C_READ@GOTPCREL(%rip), %rdx
	movq	_BCM2835_I2C_C_INTR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r14d
	orl	(%rdx), %r14d
LBB0_4:
	xorl	%edx, %edx
	cmpl	$1, %ecx
	jne	LBB0_6
## %bb.5:
	movq	_BCM2835_I2C_C_INTD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_6:
	orl	%edx, %eax
	orl	%eax, %r14d
	movq	_BCM2835_I2C_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	movq	%rbx, %rdi
	callq	_bcm2835_i2c_writel
	movq	_BCM2835_I2C_DLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_bcm2835_i2c_writel
	movq	_BCM2835_I2C_C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bcm2835_i2c_writel             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM2835_I2C_C_ST,4,2           ## @BCM2835_I2C_C_ST
	.comm	_BCM2835_I2C_C_I2CEN,4,2        ## @BCM2835_I2C_C_I2CEN
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_BCM2835_I2C_C_READ,4,2         ## @BCM2835_I2C_C_READ
	.comm	_BCM2835_I2C_C_INTR,4,2         ## @BCM2835_I2C_C_INTR
	.comm	_BCM2835_I2C_C_INTT,4,2         ## @BCM2835_I2C_C_INTT
	.comm	_BCM2835_I2C_C_INTD,4,2         ## @BCM2835_I2C_C_INTD
	.comm	_BCM2835_I2C_A,4,2              ## @BCM2835_I2C_A
	.comm	_BCM2835_I2C_DLEN,4,2           ## @BCM2835_I2C_DLEN
	.comm	_BCM2835_I2C_C,4,2              ## @BCM2835_I2C_C
	.no_dead_strip	_bcm2835_i2c_start_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_i2c_start_transfer
_bcm2835_i2c_start_transfer:            ; @bcm2835_i2c_start_transfer
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0, #16]
Lloh0:
	adrp	x9, _BCM2835_I2C_C_ST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BCM2835_I2C_C_ST@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _BCM2835_I2C_C_I2CEN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BCM2835_I2C_C_I2CEN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	subs	w8, w8, #1
	ldp	w2, w10, [x21, #8]
	str	w10, [x0, #8]
	ldp	w10, w11, [x21]
	stp	w8, w10, [x0]
Lloh6:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x10, _BCM2835_I2C_C_READ@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BCM2835_I2C_C_READ@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x12, _BCM2835_I2C_C_INTR@GOTPAGE
Lloh13:
	ldr	x12, [x12, _BCM2835_I2C_C_INTR@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	orr	w10, w12, w10
Lloh15:
	adrp	x12, _BCM2835_I2C_C_INTD@GOTPAGE
Lloh16:
	ldr	x12, [x12, _BCM2835_I2C_C_INTD@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	csel	w12, w12, wzr, eq
	tst	w8, w11
Lloh18:
	adrp	x8, _BCM2835_I2C_C_INTT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BCM2835_I2C_C_INTT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	csel	w8, w8, w10, eq
	orr	w8, w9, w8
	orr	w20, w8, w12
Lloh21:
	adrp	x8, _BCM2835_I2C_A@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BCM2835_I2C_A@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_bcm2835_i2c_writel
Lloh24:
	adrp	x8, _BCM2835_I2C_DLEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BCM2835_I2C_DLEN@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_bcm2835_i2c_writel
Lloh27:
	adrp	x8, _BCM2835_I2C_C@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BCM2835_I2C_C@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, 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	_bcm2835_i2c_writel
LBB0_2:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM2835_I2C_C_ST,4,2           ; @BCM2835_I2C_C_ST
	.comm	_BCM2835_I2C_C_I2CEN,4,2        ; @BCM2835_I2C_C_I2CEN
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_BCM2835_I2C_C_READ,4,2         ; @BCM2835_I2C_C_READ
	.comm	_BCM2835_I2C_C_INTR,4,2         ; @BCM2835_I2C_C_INTR
	.comm	_BCM2835_I2C_C_INTT,4,2         ; @BCM2835_I2C_C_INTT
	.comm	_BCM2835_I2C_C_INTD,4,2         ; @BCM2835_I2C_C_INTD
	.comm	_BCM2835_I2C_A,4,2              ; @BCM2835_I2C_A
	.comm	_BCM2835_I2C_DLEN,4,2           ; @BCM2835_I2C_DLEN
	.comm	_BCM2835_I2C_C,4,2              ; @BCM2835_I2C_C
	.no_dead_strip	_bcm2835_i2c_start_transfer
.subsections_via_symbols
