	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_i2c_parse_dt
_mtk_i2c_parse_dt:                      ## @mtk_i2c_parse_dt
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	_I2C_DEFAULT_SPEED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_2:
	leaq	8(%r15), %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_property_read_bool
	movq	%rax, 24(%r15)
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_property_read_bool
	movq	%rax, 16(%r15)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clock-frequency"

	.comm	_I2C_DEFAULT_SPEED,8,3          ## @I2C_DEFAULT_SPEED
L_.str.1:                               ## @.str.1
	.asciz	"clock-div"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"mediatek,have-pmic"

L_.str.3:                               ## @.str.3
	.asciz	"mediatek,use-push-pull"

	.no_dead_strip	_mtk_i2c_parse_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_i2c_parse_dt
_mtk_i2c_parse_dt:                      ; @mtk_i2c_parse_dt
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_of_property_read_u32
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _I2C_DEFAULT_SPEED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I2C_DEFAULT_SPEED@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_2:
	add	x21, x19, #8
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.4:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_bool
	str	x0, [x19, #24]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_bool
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #16]
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clock-frequency"

	.comm	_I2C_DEFAULT_SPEED,8,3          ; @I2C_DEFAULT_SPEED
l_.str.1:                               ; @.str.1
	.asciz	"clock-div"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"mediatek,have-pmic"

l_.str.3:                               ; @.str.3
	.asciz	"mediatek,use-push-pull"

	.no_dead_strip	_mtk_i2c_parse_dt
.subsections_via_symbols
