	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32f4_i2c_handle_rx_addr
_stm32f4_i2c_handle_rx_addr:            ## @stm32f4_i2c_handle_rx_addr
	.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	%rdi, %r14
	movl	8(%rdi), %eax
	cmpl	$2, %eax
	je	LBB0_9
## %bb.1:
	cmpl	$1, %eax
	je	LBB0_5
## %bb.2:
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	%r14, %rdi
	callq	_stm32f4_i2c_terminate_xfer
	jmp	LBB0_4
LBB0_9:
	movq	_STM32F4_I2C_CR1@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	movq	_STM32F4_I2C_CR1_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	_STM32F4_I2C_CR1_POS@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	jmp	LBB0_10
LBB0_5:
	movq	_STM32F4_I2C_CR1@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	movq	_STM32F4_I2C_CR1_ACK@GOTPCREL(%rip), %rcx
	movq	_STM32F4_I2C_CR1_POS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	movq	_STM32F4_I2C_SR2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	cmpl	$0, 12(%r14)
	jne	LBB0_6
## %bb.7:
	movq	_STM32F4_I2C_CR1_START@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_11:
	movq	_STM32F4_I2C_CR1@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	movq	_STM32F4_I2C_CR1_ACK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_STM32F4_I2C_CR1_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
LBB0_10:
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	callq	_writel_relaxed
LBB0_4:
	movq	_STM32F4_I2C_SR2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_readl_relaxed                  ## TAILCALL
LBB0_6:
	movq	_STM32F4_I2C_CR1_STOP@GOTPCREL(%rip), %rax
LBB0_8:
	orl	(%rax), %ebx
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STM32F4_I2C_SR2,8,3            ## @STM32F4_I2C_SR2
	.comm	_STM32F4_I2C_CR1,8,3            ## @STM32F4_I2C_CR1
	.comm	_STM32F4_I2C_CR1_ACK,4,2        ## @STM32F4_I2C_CR1_ACK
	.comm	_STM32F4_I2C_CR1_POS,4,2        ## @STM32F4_I2C_CR1_POS
	.comm	_STM32F4_I2C_CR1_STOP,4,2       ## @STM32F4_I2C_CR1_STOP
	.comm	_STM32F4_I2C_CR1_START,4,2      ## @STM32F4_I2C_CR1_START
	.no_dead_strip	_stm32f4_i2c_handle_rx_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32f4_i2c_handle_rx_addr
_stm32f4_i2c_handle_rx_addr:            ; @stm32f4_i2c_handle_rx_addr
	.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	x19, x0
	ldr	w8, [x0, #8]
	cmp	w8, #2
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.2:
	cbnz	w8, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_stm32f4_i2c_terminate_xfer
	b	LBB0_8
LBB0_4:
	ldr	x8, [x19]
Lloh0:
	adrp	x20, _STM32F4_I2C_CR1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _STM32F4_I2C_CR1@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh2:
	adrp	x8, _STM32F4_I2C_CR1_ACK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STM32F4_I2C_CR1_ACK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _STM32F4_I2C_CR1_POS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _STM32F4_I2C_CR1_POS@GOTPAGEOFF]
	bic	w8, w0, w8
Lloh7:
	ldr	w9, [x9]
	orr	w0, w8, w9
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19]
Lloh8:
	adrp	x21, _STM32F4_I2C_CR1@GOTPAGE
Lloh9:
	ldr	x21, [x21, _STM32F4_I2C_CR1@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh10:
	adrp	x8, _STM32F4_I2C_CR1_ACK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STM32F4_I2C_CR1_ACK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _STM32F4_I2C_CR1_POS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _STM32F4_I2C_CR1_POS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w20, w0, w8
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh16:
	adrp	x9, _STM32F4_I2C_SR2@GOTPAGE
Lloh17:
	ldr	x9, [x9, _STM32F4_I2C_SR2@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh19:
	adrp	x8, _STM32F4_I2C_CR1_START@GOTPAGE
Lloh20:
	ldr	x8, [x8, _STM32F4_I2C_CR1_START@GOTPAGEOFF]
	ldr	w9, [x19, #12]
Lloh21:
	adrp	x10, _STM32F4_I2C_CR1_STOP@GOTPAGE
Lloh22:
	ldr	x10, [x10, _STM32F4_I2C_CR1_STOP@GOTPAGEOFF]
	cmp	w9, #0
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
	orr	w0, w8, w20
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	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	_writel_relaxed
LBB0_6:
	ldr	x8, [x19]
Lloh23:
	adrp	x20, _STM32F4_I2C_CR1@GOTPAGE
Lloh24:
	ldr	x20, [x20, _STM32F4_I2C_CR1@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh25:
	adrp	x8, _STM32F4_I2C_CR1_ACK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _STM32F4_I2C_CR1_ACK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _STM32F4_I2C_CR1_POS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _STM32F4_I2C_CR1_POS@GOTPAGEOFF]
	orr	w8, w8, w0
Lloh30:
	ldr	w9, [x9]
	bic	w0, w8, w9
LBB0_7:
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel_relaxed
LBB0_8:
	ldr	x8, [x19]
Lloh31:
	adrp	x9, _STM32F4_I2C_SR2@GOTPAGE
Lloh32:
	ldr	x9, [x9, _STM32F4_I2C_SR2@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	add	x0, x9, x8
	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	_readl_relaxed
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_STM32F4_I2C_SR2,8,3            ; @STM32F4_I2C_SR2
	.comm	_STM32F4_I2C_CR1,8,3            ; @STM32F4_I2C_CR1
	.comm	_STM32F4_I2C_CR1_ACK,4,2        ; @STM32F4_I2C_CR1_ACK
	.comm	_STM32F4_I2C_CR1_POS,4,2        ; @STM32F4_I2C_CR1_POS
	.comm	_STM32F4_I2C_CR1_STOP,4,2       ; @STM32F4_I2C_CR1_STOP
	.comm	_STM32F4_I2C_CR1_START,4,2      ; @STM32F4_I2C_CR1_START
	.no_dead_strip	_stm32f4_i2c_handle_rx_addr
.subsections_via_symbols
