	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwm_beeper_on
_pwm_beeper_on:                         ## @pwm_beeper_on
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	leaq	-40(%rbp), %r15
	movq	%r15, %rsi
	callq	_pwm_get_state
	movl	$1, -40(%rbp)
	movq	%rbx, -32(%rbp)
	movq	%r15, %rdi
	movl	$50, %esi
	movl	$100, %edx
	callq	_pwm_set_relative_duty_cycle
	movl	4(%r14), %edi
	movq	%r15, %rsi
	callq	_pwm_apply_state
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	cmpl	$0, (%r14)
	jne	LBB0_5
## %bb.2:
	movl	8(%r14), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	movl	4(%r14), %edi
	callq	_pwm_disable
	movl	%r15d, %ebx
	jmp	LBB0_5
LBB0_4:
	movl	$1, (%r14)
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pwm_beeper_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwm_beeper_on
_pwm_beeper_on:                         ; @pwm_beeper_on
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	mov	x1, sp
	bl	_pwm_get_state
	mov	w8, #1
	str	w8, [sp]
	str	x20, [sp, #8]
	mov	x0, sp
	mov	w1, #50
	mov	w2, #100
	bl	_pwm_set_relative_duty_cycle
	ldr	w0, [x19, #4]
	mov	x1, sp
	bl	_pwm_apply_state
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.2:
	mov	w20, #0
	b	LBB0_6
LBB0_3:
	ldr	w0, [x19, #8]
	bl	_regulator_enable
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #4]
	bl	_pwm_disable
	b	LBB0_6
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pwm_beeper_on
.subsections_via_symbols
