	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function step_volume
_step_volume:                           ## @step_volume
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	%rdi, %rcx
	movq	_mixerdev@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$-1, %eax
	testq	%rdi, %rdi
	js	LBB0_7
## %bb.1:
	addl	(%rcx), %esi
	movl	%esi, (%rcx)
	movl	$255, %eax
	cmpl	$255, %esi
	jg	LBB0_4
## %bb.2:
	testl	%esi, %esi
	jns	LBB0_5
## %bb.3:
	xorl	%eax, %eax
LBB0_4:
	movl	%eax, (%rcx)
	movl	%eax, %esi
LBB0_5:
	movl	%esi, %eax
	shll	$8, %eax
	orl	%esi, %eax
	movl	%eax, -4(%rbp)
	movq	_SOUND_MIXER_WRITE_PCM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdx
	callq	_ioctl
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$-1, %ecx
	je	LBB0_6
LBB0_7:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	movl	$-1, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_mixerdev,8,3                   ## @mixerdev
	.comm	_SOUND_MIXER_WRITE_PCM,4,2      ## @SOUND_MIXER_WRITE_PCM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WRITE_PCM"

	.no_dead_strip	_step_volume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function step_volume
_step_volume:                           ; @step_volume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	x8, x0
Lloh0:
	adrp	x9, _mixerdev@GOTPAGE
Lloh1:
	ldr	x9, [x9, _mixerdev@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x9]
	tbnz	x0, #63, LBB0_9
; %bb.1:
	ldr	w9, [x8]
	add	w9, w9, w1
	str	w9, [x8]
	cmp	w9, #255
	b.le	LBB0_3
; %bb.2:
	mov	w9, #255
	b	LBB0_5
LBB0_3:
	tbz	w9, #31, LBB0_6
; %bb.4:
	mov	w9, #0
LBB0_5:
	str	w9, [x8]
LBB0_6:
	orr	w8, w9, w9, lsl #8
	stur	w8, [x29, #-4]
Lloh3:
	adrp	x8, _SOUND_MIXER_WRITE_PCM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOUND_MIXER_WRITE_PCM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	sub	x2, x29, #4
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_mixerdev,8,3                   ; @mixerdev
	.comm	_SOUND_MIXER_WRITE_PCM,4,2      ; @SOUND_MIXER_WRITE_PCM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WRITE_PCM"

	.no_dead_strip	_step_volume
.subsections_via_symbols
