	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isc_clk_register
_isc_clk_register:                      ## @isc_clk_register
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	16(%rdi), %rbx
	movq	(%rax), %r15
	movq	(%r15), %rax
	movq	%rax, -96(%rbp)
	movq	%r15, %rdi
	callq	_of_clk_get_parent_count
                                        ## kill: def $eax killed $eax def $rax
	leal	-4(%rax), %ecx
	cmpl	$-4, %ecx
	ja	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	_ISC_ISPCK@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	%r14d, (%rcx)
	sete	%bl
	xorl	$3, %ebx
	cmpl	$3, %eax
	cmovbl	%eax, %ebx
	leaq	-80(%rbp), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_of_clk_parent_fill
	movq	_ISC_MCK@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	leaq	-96(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_string
	movq	-96(%rbp), %rax
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -96(%rbp)
LBB0_5:
	movq	%r12, -144(%rbp)
	movl	%ebx, -136(%rbp)
	movq	%rax, -128(%rbp)
	movq	_isc_clk_ops@GOTPCREL(%rip), %rax
	movq	%rax, -112(%rbp)
	movq	_CLK_SET_RATE_GATE@GOTPCREL(%rip), %rax
	movq	_CLK_SET_PARENT_GATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -120(%rbp)
	movq	8(%r13), %rbx
	movl	%r14d, %eax
	leaq	(%rax,%rax,4), %r12
	movl	%r14d, %ecx
	leaq	8(%rbx,%r12,8), %r14
	leaq	-144(%rbp), %rax
	movq	%rax, 8(%rbx,%r12,8)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%rbx,%r12,8)
	movl	%ecx, -100(%rbp)                ## 4-byte Spill
	movl	%ecx, (%rbx,%r12,8)
	movq	(%r13), %rax
	movq	%rax, 24(%rbx,%r12,8)
	leaq	(%rbx,%r12,8), %rdi
	addq	$16, %rdi
	callq	_spin_lock_init
	movq	(%r13), %rdi
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_clk_register
	movl	%eax, 4(%rbx,%r12,8)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%r13), %rdi
	movq	-96(%rbp), %rdx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	-4(%rax), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_7:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	xorl	%ebx, %ebx
	movq	_ISC_MCK@GOTPCREL(%rip), %rax
	movl	-100(%rbp), %edx                ## 4-byte Reload
	cmpl	%edx, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	_of_clk_src_simple_get@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-4(%rcx), %edx
	movq	%r15, %rdi
	callq	_of_clk_add_provider
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ISC_ISPCK,4,2                  ## @ISC_ISPCK
	.comm	_ISC_MCK,4,2                    ## @ISC_MCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clock-output-names"

L_.str.1:                               ## @.str.1
	.asciz	"isc-ispck"

	.comm	_isc_clk_ops,4,2                ## @isc_clk_ops
	.comm	_CLK_SET_RATE_GATE,4,2          ## @CLK_SET_RATE_GATE
	.comm	_CLK_SET_PARENT_GATE,4,2        ## @CLK_SET_PARENT_GATE
L_.str.2:                               ## @.str.2
	.asciz	"%s: clock register fail\n"

	.comm	_of_clk_src_simple_get,4,2      ## @of_clk_src_simple_get
	.no_dead_strip	_isc_clk_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isc_clk_register
_isc_clk_register:                      ; @isc_clk_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldr	x23, [x0, #16]
	ldr	x8, [x0]
	ldr	x19, [x8]
	ldr	x8, [x19]
	str	x8, [sp]
	mov	x0, x19
	bl	_of_clk_get_parent_count
	sub	w8, w0, #4
	cmn	w8, #4
	b.hi	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
Lloh6:
	adrp	x8, _ISC_ISPCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ISC_ISPCK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	mov	w8, #2
	cinc	w8, w8, ne
	cmp	w0, #2
	csel	w22, w8, w0, hi
	add	x1, sp, #48
	mov	x0, x19
	mov	x2, x22
	bl	_of_clk_parent_fill
Lloh9:
	adrp	x24, _ISC_MCK@GOTPAGE
Lloh10:
	ldr	x24, [x24, _ISC_MCK@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, sp
	mov	x0, x19
	bl	_of_property_read_string
	ldr	x8, [sp]
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, l_.str.1@PAGE
Lloh14:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [sp]
LBB0_5:
	add	x9, sp, #48
	str	x9, [sp, #8]
	str	w22, [sp, #16]
	str	x8, [sp, #24]
Lloh15:
	adrp	x8, _isc_clk_ops@GOTPAGE
Lloh16:
	ldr	x8, [x8, _isc_clk_ops@GOTPAGEOFF]
	str	x8, [sp, #40]
Lloh17:
	adrp	x8, _CLK_SET_RATE_GATE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CLK_SET_RATE_GATE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _CLK_SET_PARENT_GATE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CLK_SET_PARENT_GATE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #32]
	ldr	x8, [x21, #8]
	mov	w9, #40
	umaddl	x25, w20, w9, x8
	add	x8, sp, #8
	mov	x22, x25
	str	x8, [x22, #8]!
	str	x23, [x25, #32]
	str	w20, [x25]
	ldr	x8, [x21]
	str	x8, [x25, #24]
	add	x0, x25, #16
	bl	_spin_lock_init
	ldr	x0, [x21]
	mov	x1, x22
	bl	_clk_register
	str	w0, [x25, #4]!
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x0, [x21]
	ldr	x2, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	ldr	w0, [x25]
	bl	_PTR_ERR
	b	LBB0_10
LBB0_7:
	ldr	w8, [x24]
	cmp	w8, w20
	b.ne	LBB0_9
; %bb.8:
Lloh25:
	adrp	x8, _of_clk_src_simple_get@GOTPAGE
Lloh26:
	ldr	x8, [x8, _of_clk_src_simple_get@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_of_clk_add_provider
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldr	x8, [sp, #72]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ISC_ISPCK,4,2                  ; @ISC_ISPCK
	.comm	_ISC_MCK,4,2                    ; @ISC_MCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clock-output-names"

l_.str.1:                               ; @.str.1
	.asciz	"isc-ispck"

	.comm	_isc_clk_ops,4,2                ; @isc_clk_ops
	.comm	_CLK_SET_RATE_GATE,4,2          ; @CLK_SET_RATE_GATE
	.comm	_CLK_SET_PARENT_GATE,4,2        ; @CLK_SET_PARENT_GATE
l_.str.2:                               ; @.str.2
	.asciz	"%s: clock register fail\n"

	.comm	_of_clk_src_simple_get,4,2      ; @of_clk_src_simple_get
	.no_dead_strip	_isc_clk_register
.subsections_via_symbols
