	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_lpss_register_clock
_intel_lpss_register_clock:             ## @intel_lpss_register_clock
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	32(%rdi), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	48(%rdi), %r15
	movl	40(%rdi), %edi
	callq	_dev_name
	movq	32(%rbx), %rcx
	movl	4(%rcx), %r8d
	xorl	%edi, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_clk_register_fixed_rate
	movq	%rax, %r14
	movq	%rax, -72(%rbp)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_13
## %bb.4:
	movq	%r14, %rdi
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_5:
	movq	(%r15), %rcx
	movl	(%rbx), %r8d
	leaq	L_.str(%rip), %rdx
	leaq	-64(%rbp), %rdi
	movl	$24, %esi
	callq	_snprintf
	movq	8(%rbx), %rax
	movq	_LPSS_DEV_I2C@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	leaq	-64(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_intel_lpss_register_clock_divider
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	-72(%rbp), %r14
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	32(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	leaq	-64(%rbp), %rcx
	movq	%r14, %rdi
	callq	_clkdev_create
	movl	%eax, 24(%rbx)
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	-72(%rbp), %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_11
LBB0_10:
	movq	-72(%rbp), %rdi
	callq	_intel_lpss_unregister_clock_tree
	movl	%r12d, %r15d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r15d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s.%d"

	.comm	_LPSS_DEV_I2C,8,3               ## @LPSS_DEV_I2C
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.no_dead_strip	_intel_lpss_register_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_lpss_register_clock
_intel_lpss_register_clock:             ; @intel_lpss_register_clock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x0, #32]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0, #48]
	ldr	w0, [x0, #40]
	bl	_dev_name
	mov	x1, x0
	ldr	x8, [x19, #32]
	ldr	w4, [x8, #4]
	mov	x0, #0
	mov	x2, #0
	mov	w3, #0
	bl	_clk_register_fixed_rate
	mov	x20, x0
	str	x0, [sp, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [sp, #40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.3:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_4:
	mov	w20, #0
	b	LBB0_12
LBB0_5:
	ldr	x3, [x21]
	ldr	w4, [x19]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #16
	mov	w1, #24
	bl	_snprintf
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _LPSS_DEV_I2C@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LPSS_DEV_I2C@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.6:
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x19
	bl	_intel_lpss_register_clock_divider
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.7:
	ldr	x20, [sp, #8]
LBB0_8:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	ldr	x8, [x19, #32]
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x3, sp, #16
	mov	x0, x20
	bl	_clkdev_create
	str	w0, [x19, #24]
	cbz	w0, LBB0_10
; %bb.9:
	mov	w20, #0
	ldr	x8, [sp, #8]
	str	x8, [x19, #16]
	b	LBB0_12
LBB0_10:
	neg	w20, w21
LBB0_11:
	ldr	x0, [sp, #8]
	bl	_intel_lpss_unregister_clock_tree
LBB0_12:
	ldr	x8, [sp, #40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s.%d"

	.comm	_LPSS_DEV_I2C,8,3               ; @LPSS_DEV_I2C
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.no_dead_strip	_intel_lpss_register_clock
.subsections_via_symbols
