	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwm_channel_free               ## -- Begin function pwm_channel_free
	.p2align	4, 0x90
_pwm_channel_free:                      ## @pwm_channel_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_pwm@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_pwmcheck
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movq	16(%rax), %rax
	movl	%ebx, %ecx
	movq	$0, (%rax,%rcx,8)
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movq	$0, (%rax,%rcx,8)
	movq	(%r15), %rdi
	movq	_PWM_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %r14d
	movl	%ebx, %ecx
	shll	%cl, %r14d
	movl	%r14d, %edx
	callq	_pwm_writel
	movq	(%r15), %rdi
	movq	_PWM_IDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_pwm_writel
	movq	(%r15), %rax
	movl	4(%rax), %edi
	callq	_clk_disable
	xorl	%ebx, %ebx
LBB0_2:
	movq	(%r15), %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pwm,8,3                        ## @pwm
	.comm	_PWM_DIS,4,2                    ## @PWM_DIS
	.comm	_PWM_IDR,4,2                    ## @PWM_IDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwm_channel_free               ; -- Begin function pwm_channel_free
	.p2align	2
_pwm_channel_free:                      ; @pwm_channel_free
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _pwm@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pwm@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_pwmcheck
	mov	x19, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	mov	w9, w19
	lsl	x9, x9, #3
	str	xzr, [x8, x9]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	str	xzr, [x8, x9]
	ldr	x0, [x20]
Lloh2:
	adrp	x8, _PWM_DIS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PWM_DIS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w8, #1
	lsl	w19, w8, w19
	mov	x2, x19
	bl	_pwm_writel
	ldr	x0, [x20]
Lloh5:
	adrp	x8, _PWM_IDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PWM_IDR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_pwm_writel
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	bl	_clk_disable
	mov	w19, #0
LBB0_2:
	ldr	x0, [x20]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_pwm,8,3                        ; @pwm
	.comm	_PWM_DIS,4,2                    ; @PWM_DIS
	.comm	_PWM_IDR,4,2                    ; @PWM_IDR
.subsections_via_symbols
