	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_mobile_i2c_check_timing
_sh_mobile_i2c_check_timing:            ## @sh_mobile_i2c_check_timing
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_IIC_FLAG_HAS_ICIC67@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rdi)
	setne	%al
	shlq	$8, %rax
	orq	$255, %rax
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	cmpq	%rax, %rdx
	jg	LBB0_2
## %bb.1:
	cmpq	%rax, %rcx
	jg	LBB0_2
## %bb.3:
	movq	_ICIC_ICCLB8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	$256, %edx                      ## imm = 0x100
	jne	LBB0_4
## %bb.5:
	notl	%eax
	andl	28(%rdi), %eax
	jmp	LBB0_6
LBB0_2:
	movl	24(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_4:
	orl	28(%rdi), %eax
LBB0_6:
	movq	_ICIC_ICCHB8@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	$256, %ecx                      ## imm = 0x100
	jne	LBB0_7
## %bb.8:
	notl	%esi
	andl	%esi, %eax
	jmp	LBB0_9
LBB0_7:
	orl	%esi, %eax
LBB0_9:
	movl	%eax, 28(%rdi)
	movl	24(%rdi), %edi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_dev_dbg
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIC_FLAG_HAS_ICIC67,4,2        ## @IIC_FLAG_HAS_ICIC67
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timing values out of range: L/H=0x%x/0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ICIC_ICCLB8,4,2                ## @ICIC_ICCLB8
	.comm	_ICIC_ICCHB8,4,2                ## @ICIC_ICCHB8
L_.str.1:                               ## @.str.1
	.asciz	"timing values: L/H=0x%x/0x%x\n"

	.no_dead_strip	_sh_mobile_i2c_check_timing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_mobile_i2c_check_timing
_sh_mobile_i2c_check_timing:            ; @sh_mobile_i2c_check_timing
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IIC_FLAG_HAS_ICIC67@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IIC_FLAG_HAS_ICIC67@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #511
	mov	w9, #255
	csel	x8, x9, x8, eq
	ldp	x2, x3, [x0, #8]
	cmp	x2, x8
	ccmp	x3, x8, #0, le
	b.le	LBB0_2
; %bb.1:
	ldr	w0, [x0, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh8:
	adrp	x8, _ICIC_ICCLB8@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ICIC_ICCLB8@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tbnz	w2, #8, LBB0_4
; %bb.3:
	ldr	w9, [x0, #28]
	bic	w8, w9, w8
	b	LBB0_5
LBB0_4:
	ldr	w9, [x0, #28]
	orr	w8, w9, w8
LBB0_5:
Lloh11:
	adrp	x9, _ICIC_ICCHB8@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ICIC_ICCHB8@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tbnz	w3, #8, LBB0_7
; %bb.6:
	bic	w8, w8, w9
	b	LBB0_8
LBB0_7:
	orr	w8, w8, w9
LBB0_8:
	str	w8, [x0, #28]
	ldr	w0, [x0, #24]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_dev_dbg
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IIC_FLAG_HAS_ICIC67,4,2        ; @IIC_FLAG_HAS_ICIC67
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timing values out of range: L/H=0x%x/0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ICIC_ICCLB8,4,2                ; @ICIC_ICCLB8
	.comm	_ICIC_ICCHB8,4,2                ; @ICIC_ICCHB8
l_.str.1:                               ; @.str.1
	.asciz	"timing values: L/H=0x%x/0x%x\n"

	.no_dead_strip	_sh_mobile_i2c_check_timing
.subsections_via_symbols
