	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_quark_register_i2c_clk
_intel_quark_register_i2c_clk:          ## @intel_quark_register_i2c_clk
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	_INTEL_QUARK_I2C_CONTROLLER_CLK@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_INTEL_QUARK_I2C_CLK_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_clk_register_fixed_rate
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%rbx, (%r14)
	movl	(%r13), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_clkdev_create
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	(%r14), %rdi
	callq	_clk_unregister
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_QUARK_I2C_CONTROLLER_CLK,4,2 ## @INTEL_QUARK_I2C_CONTROLLER_CLK
	.comm	_INTEL_QUARK_I2C_CLK_HZ,4,2     ## @INTEL_QUARK_I2C_CLK_HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fixed clk register failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_intel_quark_register_i2c_clk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_quark_register_i2c_clk
_intel_quark_register_i2c_clk:          ; @intel_quark_register_i2c_clk
	.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, x0
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x22, _INTEL_QUARK_I2C_CONTROLLER_CLK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _INTEL_QUARK_I2C_CONTROLLER_CLK@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _INTEL_QUARK_I2C_CLK_HZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INTEL_QUARK_I2C_CLK_HZ@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	bl	_clk_register_fixed_rate
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	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	_PTR_ERR
LBB0_2:
	str	x21, [x20]
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, #0
	bl	_clkdev_create
	str	w0, [x20, #8]
	cbz	w0, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	x0, [x20]
	bl	_clk_unregister
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_QUARK_I2C_CONTROLLER_CLK,4,2 ; @INTEL_QUARK_I2C_CONTROLLER_CLK
	.comm	_INTEL_QUARK_I2C_CLK_HZ,4,2     ; @INTEL_QUARK_I2C_CLK_HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fixed clk register failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_intel_quark_register_i2c_clk
.subsections_via_symbols
