	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ep93xx_pwm_get_freq
_ep93xx_pwm_get_freq:                   ## @ep93xx_pwm_get_freq
	.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	%rdx, %r14
	callq	_to_platform_device
	movq	%rax, %rdi
	callq	_platform_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ep93xx_pwm_is_enabled
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %edi
	callq	_clk_get_rate
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ep93xx_pwm_read_tc
	movl	%eax, %ecx
	incl	%ecx
	movslq	%ecx, %rsi
	movq	%r15, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.3:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_4
LBB0_5:
	movabsq	$7234307546238118244, %rax      ## imm = 0x64656C6261736964
	movq	%rax, (%r14)
	movw	$10, 8(%r14)
	movl	$9, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%ld\n"

L_.str.1:                               ## @.str.1
	.asciz	"disabled\n"

	.no_dead_strip	_ep93xx_pwm_get_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ep93xx_pwm_get_freq
_ep93xx_pwm_get_freq:                   ; @ep93xx_pwm_get_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	bl	_to_platform_device
	bl	_platform_get_drvdata
	mov	x20, x0
	bl	_ep93xx_pwm_is_enabled
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	bl	_clk_get_rate
	mov	x21, x0
	mov	x0, x20
	bl	_ep93xx_pwm_read_tc
	add	w8, w0, #1
	sxtw	x8, w8
	udiv	x8, x21, x8
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sprintf
	b	LBB0_3
LBB0_2:
	mov	w8, #10
	strh	w8, [x19, #8]
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh4:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w0, #9
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAddLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%ld\n"

l_.str.1:                               ; @.str.1
	.asciz	"disabled\n"

	.no_dead_strip	_ep93xx_pwm_get_freq
.subsections_via_symbols
