	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwm_beeper_event
_pwm_beeper_event:                      ## @pwm_beeper_event
	.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	%ecx, %r12d
	movl	%edx, %r15d
	movl	%esi, %ebx
	callq	_input_get_drvdata
	testl	%r12d, %r12d
	js	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movq	_EV_SND@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_8
## %bb.2:
	cmpl	$128, %r15d
	je	LBB0_6
## %bb.3:
	cmpl	$129, %r15d
	jne	LBB0_8
## %bb.4:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.5:
	movl	(%r14), %r12d
LBB0_6:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.7:
	movl	%r12d, %edi
	callq	_HZ_TO_NANOSECONDS
	jmp	LBB0_11
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	movq	%rax, 16(%r14)
	xorl	%ebx, %ebx
	cmpl	$0, 8(%r14)
	jne	LBB0_13
## %bb.12:
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_schedule_work
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_SND,4,2                     ## @EV_SND
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pwm_beeper_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwm_beeper_event
_pwm_beeper_event:                      ; @pwm_beeper_event
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	bl	_input_get_drvdata
	tbnz	w20, #31, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _EV_SND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_SND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_8
; %bb.2:
	mov	x19, x0
	cmp	w21, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w21, #129
	b.ne	LBB0_8
; %bb.4:
	cbz	w20, LBB0_9
; %bb.5:
	ldr	w20, [x19]
LBB0_6:
	cbz	w20, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_HZ_TO_NANOSECONDS
	b	LBB0_10
LBB0_8:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_9:
	mov	x0, #0
LBB0_10:
	str	x0, [x19, #16]
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_12
; %bb.11:
	add	x0, x19, #4
	bl	_schedule_work
LBB0_12:
	mov	w0, #0
LBB0_13:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_SND,4,2                     ; @EV_SND
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pwm_beeper_event
.subsections_via_symbols
