	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c24xx_i2c_stop
_s3c24xx_i2c_stop:                      ## @s3c24xx_i2c_stop
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_S3C2410_IICSTAT@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	%rax, %r15
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_S3C2410_IICSTAT_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	notq	%rdi
	andq	%r15, %rdi
	movq	(%r12), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	_STATE_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_s3c24xx_i2c_master_complete
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_s3c24xx_i2c_disable_irq        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S3C2410_IICSTAT,8,3            ## @S3C2410_IICSTAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STOP\n"

	.comm	_S3C2410_IICSTAT_START,8,3      ## @S3C2410_IICSTAT_START
	.comm	_STATE_STOP,4,2                 ## @STATE_STOP
	.no_dead_strip	_s3c24xx_i2c_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c24xx_i2c_stop
_s3c24xx_i2c_stop:                      ; @s3c24xx_i2c_stop
	.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, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x22, _S3C2410_IICSTAT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _S3C2410_IICSTAT@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	ldr	w0, [x20, #16]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh4:
	adrp	x8, _S3C2410_IICSTAT_START@GOTPAGE
Lloh5:
	ldr	x8, [x8, _S3C2410_IICSTAT_START@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	bic	x0, x21, x8
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
Lloh7:
	adrp	x8, _STATE_STOP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _STATE_STOP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_s3c24xx_i2c_master_complete
	mov	x0, x20
	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	_s3c24xx_i2c_disable_irq
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_S3C2410_IICSTAT,8,3            ; @S3C2410_IICSTAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STOP\n"

	.comm	_S3C2410_IICSTAT_START,8,3      ; @S3C2410_IICSTAT_START
	.comm	_STATE_STOP,4,2                 ; @STATE_STOP
	.no_dead_strip	_s3c24xx_i2c_stop
.subsections_via_symbols
