	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shmob_drm_setup_clocks
_shmob_drm_setup_clocks:                ## @shmob_drm_setup_clocks
	.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
	addl	$-128, %esi
	cmpl	$3, %esi
	jae	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movslq	%esi, %rax
	leaq	l_switch.table.shmob_drm_setup_clocks(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.shmob_drm_setup_clocks.3(%rip), %rdx
	movq	(%rdx,%rax,8), %r14
	movl	(%rcx), %eax
	movl	%eax, 12(%rdi)
	movl	8(%rdi), %edi
	movq	%r14, %rsi
	callq	_devm_clk_get
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	8(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	callq	_dev_err
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_3:
	movq	%r15, (%rbx)
	xorl	%eax, %eax
LBB0_4:
	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	"bus_clk"

	.comm	_LDDCKR_ICKSEL_BUS,4,2          ## @LDDCKR_ICKSEL_BUS
L_.str.1:                               ## @.str.1
	.asciz	"peripheral_clk"

	.comm	_LDDCKR_ICKSEL_MIPI,4,2         ## @LDDCKR_ICKSEL_MIPI
	.comm	_LDDCKR_ICKSEL_HDMI,4,2         ## @LDDCKR_ICKSEL_HDMI
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"cannot get dot clock %s\n"

	.no_dead_strip	_shmob_drm_setup_clocks
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.shmob_drm_setup_clocks
l_switch.table.shmob_drm_setup_clocks:
	.quad	_LDDCKR_ICKSEL_MIPI
	.quad	_LDDCKR_ICKSEL_HDMI
	.quad	_LDDCKR_ICKSEL_BUS

	.p2align	3                               ## @switch.table.shmob_drm_setup_clocks.3
l_switch.table.shmob_drm_setup_clocks.3:
	.quad	L_.str.1
	.quad	0
	.quad	L_.str

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shmob_drm_setup_clocks
_shmob_drm_setup_clocks:                ; @shmob_drm_setup_clocks
	.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
	sub	w8, w1, #128
	cmp	w8, #3
	b.hs	LBB0_3
; %bb.1:
	mov	x19, x0
	sbfiz	x8, x8, #3, #32
Lloh0:
	adrp	x9, l_switch.table.shmob_drm_setup_clocks@PAGE
Lloh1:
	add	x9, x9, l_switch.table.shmob_drm_setup_clocks@PAGEOFF
	ldr	x9, [x9, x8]
Lloh2:
	adrp	x10, l_switch.table.shmob_drm_setup_clocks.3@PAGE
Lloh3:
	add	x10, x10, l_switch.table.shmob_drm_setup_clocks.3@PAGEOFF
	ldr	x20, [x10, x8]
	ldr	w8, [x9]
	str	w8, [x0, #12]
	ldr	w0, [x0, #8]
	mov	x1, x20
	bl	_devm_clk_get
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	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_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	str	x21, [x19]
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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bus_clk"

	.comm	_LDDCKR_ICKSEL_BUS,4,2          ; @LDDCKR_ICKSEL_BUS
l_.str.1:                               ; @.str.1
	.asciz	"peripheral_clk"

	.comm	_LDDCKR_ICKSEL_MIPI,4,2         ; @LDDCKR_ICKSEL_MIPI
	.comm	_LDDCKR_ICKSEL_HDMI,4,2         ; @LDDCKR_ICKSEL_HDMI
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"cannot get dot clock %s\n"

	.no_dead_strip	_shmob_drm_setup_clocks
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.shmob_drm_setup_clocks
l_switch.table.shmob_drm_setup_clocks:
	.quad	_LDDCKR_ICKSEL_MIPI
	.quad	_LDDCKR_ICKSEL_HDMI
	.quad	_LDDCKR_ICKSEL_BUS

	.p2align	3                               ; @switch.table.shmob_drm_setup_clocks.3
l_switch.table.shmob_drm_setup_clocks.3:
	.quad	l_.str.1
	.quad	0
	.quad	l_.str

.subsections_via_symbols
