	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c24xx_i2c_message_start
_s3c24xx_i2c_message_start:             ## @s3c24xx_i2c_message_start
	.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	%rdi, %rbx
	movl	(%rsi), %edx
	movl	4(%rsi), %ecx
	andl	$127, %edx
	movq	_S3C2410_IICSTAT_TXRXEN@GOTPCREL(%rip), %rax
	movq	_I2C_M_RD@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	movl	(%rsi), %esi
	andl	%ecx, %esi
	setne	%dil
	leal	(%rdi,%rdx,2), %r15d
	jne	LBB0_1
## %bb.2:
	movq	_S3C2410_IICSTAT_MASTER_TX@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	movq	_S3C2410_IICSTAT_MASTER_RX@GOTPCREL(%rip), %rdx
LBB0_3:
	movq	(%rdx), %r14
	movq	_I2C_M_REV_DIR_ADDR@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	andl	(%rdx), %ecx
	setne	%sil
	xorl	%esi, %r15d
	orq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_s3c24xx_i2c_enable_ack
	movq	_S3C2410_IICCON@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	%rax, %r12
	movq	_S3C2410_IICSTAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_writel
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_S3C2410_IICDS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	%r15d, %edi
	callq	_writeb
	movl	12(%rbx), %edi
	callq	_ndelay
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r13), %rsi
	addq	(%rbx), %rsi
	movq	%r12, %rdi
	callq	_writel
	movq	_S3C2410_IICSTAT_START@GOTPCREL(%rip), %rax
	orq	(%rax), %r14
	movq	_S3C2410_IICSTAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S3C2410_IICSTAT_TXRXEN,8,3     ## @S3C2410_IICSTAT_TXRXEN
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_S3C2410_IICSTAT_MASTER_RX,8,3  ## @S3C2410_IICSTAT_MASTER_RX
	.comm	_S3C2410_IICSTAT_MASTER_TX,8,3  ## @S3C2410_IICSTAT_MASTER_TX
	.comm	_I2C_M_REV_DIR_ADDR,4,2         ## @I2C_M_REV_DIR_ADDR
	.comm	_S3C2410_IICCON,8,3             ## @S3C2410_IICCON
	.comm	_S3C2410_IICSTAT,8,3            ## @S3C2410_IICSTAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"START: %08lx to IICSTAT, %02x to DS\n"

	.comm	_S3C2410_IICDS,8,3              ## @S3C2410_IICDS
L_.str.1:                               ## @.str.1
	.asciz	"iiccon, %08lx\n"

	.comm	_S3C2410_IICSTAT_START,8,3      ## @S3C2410_IICSTAT_START
	.no_dead_strip	_s3c24xx_i2c_message_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c24xx_i2c_message_start
_s3c24xx_i2c_message_start:             ; @s3c24xx_i2c_message_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
Lloh0:
	adrp	x8, _S3C2410_IICSTAT_TXRXEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S3C2410_IICSTAT_TXRXEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
	ldp	w10, w11, [x1]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w11
	cset	w9, ne
Lloh6:
	adrp	x12, _S3C2410_IICSTAT_MASTER_TX@GOTPAGE
Lloh7:
	ldr	x12, [x12, _S3C2410_IICSTAT_MASTER_TX@GOTPAGEOFF]
	bfi	w9, w10, #1, #7
Lloh8:
	adrp	x10, _S3C2410_IICSTAT_MASTER_RX@GOTPAGE
Lloh9:
	ldr	x10, [x10, _S3C2410_IICSTAT_MASTER_RX@GOTPAGEOFF]
	csel	x10, x12, x10, eq
Lloh10:
	adrp	x12, _I2C_M_REV_DIR_ADDR@GOTPAGE
Lloh11:
	ldr	x12, [x12, _I2C_M_REV_DIR_ADDR@GOTPAGEOFF]
	ldr	x10, [x10]
Lloh12:
	ldr	w12, [x12]
	tst	w12, w11
	cset	w11, ne
	eor	w21, w9, w11
	orr	x20, x10, x8
	bl	_s3c24xx_i2c_enable_ack
	ldr	x8, [x19]
Lloh13:
	adrp	x23, _S3C2410_IICCON@GOTPAGE
Lloh14:
	ldr	x23, [x23, _S3C2410_IICCON@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	mov	x22, x0
	ldr	x8, [x19]
Lloh15:
	adrp	x24, _S3C2410_IICSTAT@GOTPAGE
Lloh16:
	ldr	x24, [x24, _S3C2410_IICSTAT@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	w0, [x19, #8]
	str	x21, [sp]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	ldr	x8, [x19]
Lloh19:
	adrp	x9, _S3C2410_IICDS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _S3C2410_IICDS@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writeb
	ldr	w0, [x19, #12]
	bl	_ndelay
	ldr	w0, [x19, #8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_dev_dbg
	ldr	x8, [x19]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	x0, x22
	bl	_writel
Lloh24:
	adrp	x8, _S3C2410_IICSTAT_START@GOTPAGE
Lloh25:
	ldr	x8, [x8, _S3C2410_IICSTAT_START@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	orr	x0, x8, x20
	ldr	x8, [x19]
	ldr	x9, [x24]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_writel
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_S3C2410_IICSTAT_TXRXEN,8,3     ; @S3C2410_IICSTAT_TXRXEN
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_S3C2410_IICSTAT_MASTER_RX,8,3  ; @S3C2410_IICSTAT_MASTER_RX
	.comm	_S3C2410_IICSTAT_MASTER_TX,8,3  ; @S3C2410_IICSTAT_MASTER_TX
	.comm	_I2C_M_REV_DIR_ADDR,4,2         ; @I2C_M_REV_DIR_ADDR
	.comm	_S3C2410_IICCON,8,3             ; @S3C2410_IICCON
	.comm	_S3C2410_IICSTAT,8,3            ; @S3C2410_IICSTAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"START: %08lx to IICSTAT, %02x to DS\n"

	.comm	_S3C2410_IICDS,8,3              ; @S3C2410_IICDS
l_.str.1:                               ; @.str.1
	.asciz	"iiccon, %08lx\n"

	.comm	_S3C2410_IICSTAT_START,8,3      ; @S3C2410_IICSTAT_START
	.no_dead_strip	_s3c24xx_i2c_message_start
.subsections_via_symbols
