	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c24xx_i2c_init
_s3c24xx_i2c_init:                      ## @s3c24xx_i2c_init
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movl	(%r14), %edi
	movq	_S3C2410_IICADD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writeb
	movl	8(%rbx), %edi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	_S3C2410_IICCON@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	(%rbx), %rsi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_writel
	movq	_S3C2410_IICSTAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_s3c24xx_i2c_clockrate
	movl	8(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_3
LBB0_2:
	movl	-36(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_info
	movl	8(%rbx), %r15d
	movq	(%r12), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_dev_dbg
LBB0_3:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S3C2410_IICADD,8,3             ## @S3C2410_IICADD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"slave address 0x%02x\n"

	.comm	_S3C2410_IICCON,8,3             ## @S3C2410_IICCON
	.comm	_S3C2410_IICSTAT,8,3            ## @S3C2410_IICSTAT
L_.str.1:                               ## @.str.1
	.asciz	"cannot meet bus frequency required\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"bus frequency set to %d KHz\n"

L_.str.3:                               ## @.str.3
	.asciz	"S3C2410_IICCON=0x%02x\n"

	.no_dead_strip	_s3c24xx_i2c_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c24xx_i2c_init
_s3c24xx_i2c_init:                      ; @s3c24xx_i2c_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	w0, [x20]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _S3C2410_IICADD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S3C2410_IICADD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writeb
	ldr	w0, [x19, #8]
	ldr	w2, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	x8, [x19]
Lloh5:
	adrp	x21, _S3C2410_IICCON@GOTPAGE
Lloh6:
	ldr	x21, [x21, _S3C2410_IICCON@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _S3C2410_IICSTAT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _S3C2410_IICSTAT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	add	x1, sp, #12
	mov	x0, x19
	bl	_s3c24xx_i2c_clockrate
	mov	x8, x0
	ldr	w0, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	w2, [sp, #12]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
	ldr	w20, [x19, #8]
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	w0, #0
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_S3C2410_IICADD,8,3             ; @S3C2410_IICADD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"slave address 0x%02x\n"

	.comm	_S3C2410_IICCON,8,3             ; @S3C2410_IICCON
	.comm	_S3C2410_IICSTAT,8,3            ; @S3C2410_IICSTAT
l_.str.1:                               ; @.str.1
	.asciz	"cannot meet bus frequency required\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"bus frequency set to %d KHz\n"

l_.str.3:                               ; @.str.3
	.asciz	"S3C2410_IICCON=0x%02x\n"

	.no_dead_strip	_s3c24xx_i2c_init
.subsections_via_symbols
