	.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, %r15
	movq	_S3C2410_IICCON_IRQEN@GOTPCREL(%rip), %rax
	movq	_S3C2410_IICCON_ACKEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	orq	(%rax), %r14
	movq	(%rdi), %rdi
	movq	(%rdi), %rbx
	movq	8(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	callq	_to_platform_device
	movl	%eax, %edi
	callq	*%r12
LBB0_2:
	movl	(%rbx), %edi
	movq	_S3C2410_IICADD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_writeb
	movq	(%r15), %rdi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	_S3C2410_IICCON@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	8(%r15), %rsi
	movq	%r14, %rdi
	callq	_writel
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	callq	_s3c24xx_i2c_clockrate
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rsi
	addq	8(%r15), %rsi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_writel
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_4:
	movq	(%r15), %rdi
	movl	-36(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_info
	movq	(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdx
	callq	_dev_dbg
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S3C2410_IICCON_IRQEN,8,3       ## @S3C2410_IICCON_IRQEN
	.comm	_S3C2410_IICCON_ACKEN,8,3       ## @S3C2410_IICCON_ACKEN
	.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
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%02lx\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
Lloh0:
	adrp	x8, _S3C2410_IICCON_IRQEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S3C2410_IICCON_IRQEN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _S3C2410_IICCON_ACKEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _S3C2410_IICCON_ACKEN@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
	orr	x20, x9, x8
	ldr	x0, [x0]
	ldr	x21, [x0]
	ldr	x22, [x21, #8]
	cbz	x22, LBB0_2
; %bb.1:
	bl	_to_platform_device
	blr	x22
LBB0_2:
	ldr	w0, [x21]
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _S3C2410_IICADD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _S3C2410_IICADD@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writeb
	ldr	x0, [x19]
	ldr	w2, [x21]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x21, _S3C2410_IICCON@GOTPAGE
Lloh12:
	ldr	x21, [x21, _S3C2410_IICCON@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	add	x1, sp, #12
	mov	x0, x19
	bl	_s3c24xx_i2c_clockrate
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, #0
	bl	_writel
	ldr	x0, [x19]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	ldr	x0, [x19]
	ldr	w2, [sp, #12]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
	ldr	x0, [x19]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	mov	w0, #0
LBB0_5:
	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	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_S3C2410_IICCON_IRQEN,8,3       ; @S3C2410_IICCON_IRQEN
	.comm	_S3C2410_IICCON_ACKEN,8,3       ; @S3C2410_IICCON_ACKEN
	.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
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%02lx\n"

	.no_dead_strip	_s3c24xx_i2c_init
.subsections_via_symbols
