	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32f4_i2c_isr_event
_stm32f4_i2c_isr_event:                 ## @stm32f4_i2c_isr_event
	.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, %r15
	movq	_STM32F4_I2C_SR1_ITEVTEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_STM32F4_I2C_CR2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rsi), %rdi
	callq	_readl_relaxed
	movl	%eax, %r14d
	movq	_STM32F4_I2C_CR2_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	%r14d, %r12d
	movq	_STM32F4_I2C_CR2_ITBUFEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r12d, %ebx
	je	LBB0_2
## %bb.1:
	movq	_STM32F4_I2C_SR1_ITBUFEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	orl	%r13d, %ebx
	movq	_STM32F4_I2C_SR1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_readl_relaxed
	andl	%eax, %ebx
	je	LBB0_3
## %bb.4:
	movq	_STM32F4_I2C_SR1_SB@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	movl	12(%r15), %esi
	movq	%r15, %rdi
	callq	_stm32f4_i2c_write_byte
LBB0_6:
	movq	_STM32F4_I2C_SR1_ADDR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.7:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r15)
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_stm32f4_i2c_handle_rx_addr
	jmp	LBB0_10
LBB0_3:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movl	%r12d, %ecx
	callq	_dev_dbg
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
	jmp	LBB0_21
LBB0_9:
	movq	_STM32F4_I2C_SR2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_readl_relaxed
LBB0_10:
	movq	_STM32F4_I2C_CR2_ITBUFEN@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_STM32F4_I2C_CR2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	movl	%r14d, %edi
	callq	_writel_relaxed
LBB0_11:
	movq	_STM32F4_I2C_SR1_TXE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_14
## %bb.12:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r15)
	jne	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_stm32f4_i2c_handle_write
LBB0_14:
	movq	_STM32F4_I2C_SR1_RXNE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_17
## %bb.15:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r15)
	je	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	callq	_stm32f4_i2c_handle_read
LBB0_17:
	movq	_STM32F4_I2C_SR1_BTF@GOTPCREL(%rip), %rax
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	testl	%ebx, (%rax)
	je	LBB0_21
## %bb.18:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r15)
	je	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	callq	_stm32f4_i2c_handle_rx_done
	jmp	LBB0_21
LBB0_20:
	movq	%r15, %rdi
	callq	_stm32f4_i2c_handle_write
LBB0_21:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STM32F4_I2C_SR1_ITEVTEN_MASK,4,2 ## @STM32F4_I2C_SR1_ITEVTEN_MASK
	.comm	_STM32F4_I2C_CR2,8,3            ## @STM32F4_I2C_CR2
	.comm	_STM32F4_I2C_CR2_IRQ_MASK,4,2   ## @STM32F4_I2C_CR2_IRQ_MASK
	.comm	_STM32F4_I2C_CR2_ITBUFEN,4,2    ## @STM32F4_I2C_CR2_ITBUFEN
	.comm	_STM32F4_I2C_SR1_ITBUFEN_MASK,4,2 ## @STM32F4_I2C_SR1_ITBUFEN_MASK
	.comm	_STM32F4_I2C_SR1,8,3            ## @STM32F4_I2C_SR1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spurious evt irq (status=0x%08x, ien=0x%08x)\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_STM32F4_I2C_SR1_SB,4,2         ## @STM32F4_I2C_SR1_SB
	.comm	_STM32F4_I2C_SR1_ADDR,4,2       ## @STM32F4_I2C_SR1_ADDR
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_STM32F4_I2C_SR2,8,3            ## @STM32F4_I2C_SR2
	.comm	_STM32F4_I2C_SR1_TXE,4,2        ## @STM32F4_I2C_SR1_TXE
	.comm	_STM32F4_I2C_SR1_RXNE,4,2       ## @STM32F4_I2C_SR1_RXNE
	.comm	_STM32F4_I2C_SR1_BTF,4,2        ## @STM32F4_I2C_SR1_BTF
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_stm32f4_i2c_isr_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32f4_i2c_isr_event
_stm32f4_i2c_isr_event:                 ; @stm32f4_i2c_isr_event
	.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	x8, _STM32F4_I2C_SR1_ITEVTEN_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STM32F4_I2C_SR1_ITEVTEN_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	x8, [x1]
Lloh3:
	adrp	x23, _STM32F4_I2C_CR2@GOTPAGE
Lloh4:
	ldr	x23, [x23, _STM32F4_I2C_CR2@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x20, x0
Lloh5:
	adrp	x8, _STM32F4_I2C_CR2_IRQ_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STM32F4_I2C_CR2_IRQ_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w21, w8, w0
Lloh8:
	adrp	x24, _STM32F4_I2C_CR2_ITBUFEN@GOTPAGE
Lloh9:
	ldr	x24, [x24, _STM32F4_I2C_CR2_ITBUFEN@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh10:
	adrp	x9, _STM32F4_I2C_SR1_ITBUFEN_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _STM32F4_I2C_SR1_ITBUFEN_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w21, w8
	csel	w8, wzr, w9, eq
	orr	w22, w8, w22
	ldr	x8, [x19]
Lloh13:
	adrp	x9, _STM32F4_I2C_SR1@GOTPAGE
Lloh14:
	ldr	x9, [x9, _STM32F4_I2C_SR1@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	ands	w22, w0, w22
	b.eq	LBB0_6
; %bb.1:
Lloh16:
	adrp	x8, _STM32F4_I2C_SR1_SB@GOTPAGE
Lloh17:
	ldr	x8, [x8, _STM32F4_I2C_SR1_SB@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x19, #12]
	mov	x0, x19
	bl	_stm32f4_i2c_write_byte
LBB0_3:
Lloh19:
	adrp	x8, _STM32F4_I2C_SR1_ADDR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _STM32F4_I2C_SR1_ADDR@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x21, _I2C_M_RD@GOTPAGE
Lloh23:
	ldr	x21, [x21, _I2C_M_RD@GOTPAGEOFF]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.4:
	ldr	w8, [x19, #12]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_stm32f4_i2c_handle_rx_addr
	b	LBB0_8
LBB0_6:
	mov	x2, x0
	ldr	w0, [x19, #8]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x21
	bl	_dev_dbg
Lloh26:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_20
LBB0_7:
	ldr	x8, [x19]
Lloh28:
	adrp	x9, _STM32F4_I2C_SR2@GOTPAGE
Lloh29:
	ldr	x9, [x9, _STM32F4_I2C_SR2@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
LBB0_8:
	ldr	w8, [x24]
	orr	w0, w8, w20
	ldr	x8, [x19]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel_relaxed
LBB0_9:
Lloh31:
	adrp	x8, _STM32F4_I2C_SR1_TXE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _STM32F4_I2C_SR1_TXE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_12
; %bb.10:
	ldr	w8, [x19, #12]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_stm32f4_i2c_handle_write
LBB0_12:
Lloh34:
	adrp	x8, _STM32F4_I2C_SR1_RXNE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _STM32F4_I2C_SR1_RXNE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_15
; %bb.13:
	ldr	w8, [x19, #12]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_stm32f4_i2c_handle_read
LBB0_15:
Lloh37:
	adrp	x8, _STM32F4_I2C_SR1_BTF@GOTPAGE
Lloh38:
	ldr	x8, [x8, _STM32F4_I2C_SR1_BTF@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_19
; %bb.16:
	ldr	w8, [x19, #12]
	ldr	w9, [x21]
	mov	x0, x19
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
	bl	_stm32f4_i2c_handle_rx_done
	b	LBB0_19
LBB0_18:
	bl	_stm32f4_i2c_handle_write
LBB0_19:
Lloh40:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_20:
	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
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_STM32F4_I2C_SR1_ITEVTEN_MASK,4,2 ; @STM32F4_I2C_SR1_ITEVTEN_MASK
	.comm	_STM32F4_I2C_CR2,8,3            ; @STM32F4_I2C_CR2
	.comm	_STM32F4_I2C_CR2_IRQ_MASK,4,2   ; @STM32F4_I2C_CR2_IRQ_MASK
	.comm	_STM32F4_I2C_CR2_ITBUFEN,4,2    ; @STM32F4_I2C_CR2_ITBUFEN
	.comm	_STM32F4_I2C_SR1_ITBUFEN_MASK,4,2 ; @STM32F4_I2C_SR1_ITBUFEN_MASK
	.comm	_STM32F4_I2C_SR1,8,3            ; @STM32F4_I2C_SR1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spurious evt irq (status=0x%08x, ien=0x%08x)\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_STM32F4_I2C_SR1_SB,4,2         ; @STM32F4_I2C_SR1_SB
	.comm	_STM32F4_I2C_SR1_ADDR,4,2       ; @STM32F4_I2C_SR1_ADDR
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_STM32F4_I2C_SR2,8,3            ; @STM32F4_I2C_SR2
	.comm	_STM32F4_I2C_SR1_TXE,4,2        ; @STM32F4_I2C_SR1_TXE
	.comm	_STM32F4_I2C_SR1_RXNE,4,2       ; @STM32F4_I2C_SR1_RXNE
	.comm	_STM32F4_I2C_SR1_BTF,4,2        ; @STM32F4_I2C_SR1_BTF
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_stm32f4_i2c_isr_event
.subsections_via_symbols
