	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwm_clk_free                   ## -- Begin function pwm_clk_free
	.p2align	4, 0x90
_pwm_clk_free:                          ## @pwm_clk_free
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_pwm@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_spin_lock_irqsave
	movq	(%r15), %rdi
	movq	_PWM_MR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_pwm_readl
	movl	%eax, %r14d
	movq	_PWM_CPR_CLKA@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rdi
	movl	(%r12), %esi
	movl	%r14d, %edx
	andl	$-65536, %edx                   ## imm = 0xFFFF0000
	callq	_pwm_writel
LBB0_2:
	movq	_PWM_CPR_CLKB@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	(%r15), %rdi
	movl	(%r12), %esi
	movzwl	%r14w, %edx
	callq	_pwm_writel
LBB0_4:
	movq	(%r15), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pwm,8,3                        ## @pwm
	.comm	_PWM_MR,4,2                     ## @PWM_MR
	.comm	_PWM_CPR_CLKA,4,2               ## @PWM_CPR_CLKA
	.comm	_PWM_CPR_CLKB,4,2               ## @PWM_CPR_CLKB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwm_clk_free                   ; -- Begin function pwm_clk_free
	.p2align	2
_pwm_clk_free:                          ; @pwm_clk_free
	.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
Lloh0:
	adrp	x21, _pwm@GOTPAGE
Lloh1:
	ldr	x21, [x21, _pwm@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_spin_lock_irqsave
	ldr	x0, [x21]
Lloh2:
	adrp	x22, _PWM_MR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PWM_MR@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_pwm_readl
	mov	x20, x0
Lloh4:
	adrp	x8, _PWM_CPR_CLKA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PWM_CPR_CLKA@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x21]
	ldr	w1, [x22]
	and	w2, w20, #0xffff0000
	bl	_pwm_writel
LBB0_2:
Lloh7:
	adrp	x8, _PWM_CPR_CLKB@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PWM_CPR_CLKB@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [x21]
	ldr	w1, [x22]
	and	w2, w20, #0xffff
	bl	_pwm_writel
LBB0_4:
	ldr	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_pwm,8,3                        ; @pwm
	.comm	_PWM_MR,4,2                     ; @PWM_MR
	.comm	_PWM_CPR_CLKA,4,2               ; @PWM_CPR_CLKA
	.comm	_PWM_CPR_CLKB,4,2               ; @PWM_CPR_CLKB
.subsections_via_symbols
