	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_i2c_isr
_bcm2835_i2c_isr:                       ## @bcm2835_i2c_isr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_BCM2835_I2C_S@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_bcm2835_i2c_readl
	movl	%eax, %r14d
	movq	_BCM2835_I2C_S_CLKT@GOTPCREL(%rip), %r12
	movq	_BCM2835_I2C_S_ERR@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	orl	(%r12), %eax
	andl	%r14d, %eax
	jne	LBB0_20
## %bb.1:
	movq	_BCM2835_I2C_S_DONE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.2:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_bcm2835_drain_rxfifo
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_bcm2835_i2c_readl
	movl	%eax, %r14d
	jmp	LBB0_6
LBB0_9:
	movq	_BCM2835_I2C_S_TXW@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_15
## %bb.10:
	cmpq	$0, 8(%rbx)
	je	LBB0_11
## %bb.12:
	movq	%rbx, %rdi
	callq	_bcm2835_fill_txfifo
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	cmpq	$0, 24(%rbx)
	je	LBB0_22
## %bb.13:
	cmpq	$0, 8(%rbx)
	jne	LBB0_22
## %bb.14:
	addq	$4, 16(%rbx)
	movq	%rbx, %rdi
	callq	_bcm2835_i2c_start_transfer
	jmp	LBB0_22
LBB0_3:
	movl	32(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_6:
	movq	_BCM2835_I2C_S_RXD@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_19
## %bb.7:
	cmpq	$0, 8(%rbx)
	je	LBB0_8
LBB0_19:
	movq	_BCM2835_I2C_S_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_20:
	movl	%eax, (%rbx)
	movq	_BCM2835_I2C_C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BCM2835_I2C_C_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_bcm2835_i2c_writel
	movl	(%r13), %edx
	orl	(%r12), %edx
	movl	(%r15), %esi
	movq	_BCM2835_I2C_S_DONE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_bcm2835_i2c_writel
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_complete
LBB0_21:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
LBB0_22:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_BCM2835_I2C_S_RXR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_16
## %bb.17:
	cmpq	$0, 8(%rbx)
	je	LBB0_11
## %bb.18:
	movq	%rbx, %rdi
	callq	_bcm2835_drain_rxfifo
	jmp	LBB0_21
LBB0_11:
	movq	_BCM2835_I2C_S_LEN@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, %eax
	jmp	LBB0_20
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_16:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM2835_I2C_S,4,2              ## @BCM2835_I2C_S
	.comm	_BCM2835_I2C_S_CLKT,4,2         ## @BCM2835_I2C_S_CLKT
	.comm	_BCM2835_I2C_S_ERR,4,2          ## @BCM2835_I2C_S_ERR
	.comm	_BCM2835_I2C_S_DONE,4,2         ## @BCM2835_I2C_S_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Got unexpected interrupt (from firmware?)\n"

	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_BCM2835_I2C_S_RXD,4,2          ## @BCM2835_I2C_S_RXD
	.comm	_BCM2835_I2C_S_LEN,4,2          ## @BCM2835_I2C_S_LEN
	.comm	_BCM2835_I2C_S_TXW,4,2          ## @BCM2835_I2C_S_TXW
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_BCM2835_I2C_S_RXR,4,2          ## @BCM2835_I2C_S_RXR
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_BCM2835_I2C_C,4,2              ## @BCM2835_I2C_C
	.comm	_BCM2835_I2C_C_CLEAR,4,2        ## @BCM2835_I2C_C_CLEAR
	.no_dead_strip	_bcm2835_i2c_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_i2c_isr
_bcm2835_i2c_isr:                       ; @bcm2835_i2c_isr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
Lloh0:
	adrp	x21, _BCM2835_I2C_S@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BCM2835_I2C_S@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_bcm2835_i2c_readl
Lloh2:
	adrp	x22, _BCM2835_I2C_S_CLKT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _BCM2835_I2C_S_CLKT@GOTPAGEOFF]
Lloh4:
	adrp	x23, _BCM2835_I2C_S_ERR@GOTPAGE
Lloh5:
	ldr	x23, [x23, _BCM2835_I2C_S_ERR@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
Lloh6:
	adrp	x24, _BCM2835_I2C_S_DONE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _BCM2835_I2C_S_DONE@GOTPAGEOFF]
	ands	w8, w8, w0
	b.ne	LBB0_14
; %bb.1:
	mov	x20, x0
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
; %bb.3:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.4:
	mov	x0, x19
	bl	_bcm2835_drain_rxfifo
	ldr	w1, [x21]
	mov	x0, x19
	bl	_bcm2835_i2c_readl
	mov	x20, x0
	b	LBB0_11
LBB0_5:
Lloh11:
	adrp	x8, _BCM2835_I2C_S_TXW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BCM2835_I2C_S_TXW@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_17
; %bb.6:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_20
; %bb.7:
	mov	x0, x19
	bl	_bcm2835_fill_txfifo
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_15
; %bb.8:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_15
; %bb.9:
	ldr	x8, [x19, #16]
	add	x8, x8, #4
	str	x8, [x19, #16]
	mov	x0, x19
	bl	_bcm2835_i2c_start_transfer
	b	LBB0_15
LBB0_10:
	ldr	w0, [x19, #32]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_11:
Lloh16:
	adrp	x8, _BCM2835_I2C_S_RXD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BCM2835_I2C_S_RXD@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_13
; %bb.12:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
LBB0_13:
Lloh19:
	adrp	x8, _BCM2835_I2C_S_LEN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BCM2835_I2C_S_LEN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
LBB0_14:
	mov	x20, x19
	str	w8, [x20], #4
Lloh22:
	adrp	x8, _BCM2835_I2C_C@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BCM2835_I2C_C@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _BCM2835_I2C_C_CLEAR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BCM2835_I2C_C_CLEAR@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bcm2835_i2c_writel
	ldr	w1, [x21]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_bcm2835_i2c_writel
	mov	x0, x20
	bl	_complete
LBB0_15:
Lloh28:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh30:
	adrp	x8, _BCM2835_I2C_S_RXR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BCM2835_I2C_S_RXR@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_21
; %bb.18:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_bcm2835_drain_rxfifo
	b	LBB0_15
LBB0_20:
Lloh33:
	adrp	x8, _BCM2835_I2C_S_LEN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BCM2835_I2C_S_LEN@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	orr	w8, w8, w20
	b	LBB0_14
LBB0_21:
Lloh36:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM2835_I2C_S,4,2              ; @BCM2835_I2C_S
	.comm	_BCM2835_I2C_S_CLKT,4,2         ; @BCM2835_I2C_S_CLKT
	.comm	_BCM2835_I2C_S_ERR,4,2          ; @BCM2835_I2C_S_ERR
	.comm	_BCM2835_I2C_S_DONE,4,2         ; @BCM2835_I2C_S_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Got unexpected interrupt (from firmware?)\n"

	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_BCM2835_I2C_S_RXD,4,2          ; @BCM2835_I2C_S_RXD
	.comm	_BCM2835_I2C_S_LEN,4,2          ; @BCM2835_I2C_S_LEN
	.comm	_BCM2835_I2C_S_TXW,4,2          ; @BCM2835_I2C_S_TXW
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_BCM2835_I2C_S_RXR,4,2          ; @BCM2835_I2C_S_RXR
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_BCM2835_I2C_C,4,2              ; @BCM2835_I2C_C
	.comm	_BCM2835_I2C_C_CLEAR,4,2        ; @BCM2835_I2C_C_CLEAR
	.no_dead_strip	_bcm2835_i2c_isr
.subsections_via_symbols
