	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si4713_write_econtrol_integers
_si4713_write_econtrol_integers:        ## @si4713_write_econtrol_integers
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	$0, -64(%rbp)
	movl	$0, -56(%rbp)
	movl	$0, -40(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, -48(%rbp)
	movq	$0, -72(%rbp)
	movl	$0, -44(%rbp)
	addq	$16, %rdi
	callq	_validate_range
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	4(%r15), %esi
	subq	$8, %rsp
	leaq	-44(%rbp), %rax
	leaq	-72(%rbp), %rbx
	leaq	-48(%rbp), %r10
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-40(%rbp), %r8
	leaq	-52(%rbp), %r9
	movq	%r14, %rdi
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	callq	_si4713_choose_econtrol_action
	addq	$32, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_24
## %bb.3:
	movl	(%r15), %r12d
	movl	%r12d, -36(%rbp)
	movl	-48(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.4:
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r12d
	movl	%eax, -36(%rbp)
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpq	$0, 8(%r14)
	je	LBB0_17
## %bb.10:
	cmpl	$0, -40(%rbp)
	je	LBB0_14
## %bb.11:
	movl	-52(%rbp), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_si4713_read_property
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movl	-36(%rbp), %edi
	movl	(%r15), %esi
	movl	-56(%rbp), %edx
	movl	-40(%rbp), %ecx
	callq	_set_bits
	movl	%eax, %r12d
	movl	%eax, -36(%rbp)
LBB0_14:
	movl	-52(%rbp), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_si4713_write_property
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_23
## %bb.15:
	cmpl	$0, -40(%rbp)
	je	LBB0_17
## %bb.16:
	movl	(%r15), %eax
	movl	%eax, -36(%rbp)
LBB0_17:
	movl	-48(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	imull	-36(%rbp), %eax
	movq	-64(%rbp), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_23
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_24
LBB0_5:
	movq	-72(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.6:
	movl	-44(%rbp), %edx
	movl	%r12d, %edi
	callq	_usecs_to_dev
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movl	%r12d, -36(%rbp)
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_19:
	movq	-72(%rbp), %rsi
	movl	-36(%rbp), %edi
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.20:
	movl	-44(%rbp), %edx
	callq	_dev_to_usecs
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_23
## %bb.21:
	movq	-64(%rbp), %rax
	movl	%ebx, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_12:
	movl	%eax, %ebx
	jmp	LBB0_23
LBB0_7:
	movl	%r12d, %ebx
	jmp	LBB0_24
LBB0_22:
	movq	-64(%rbp), %rax
	movl	%edi, (%rax)
LBB0_23:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_24:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_si4713_write_econtrol_integers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si4713_write_econtrol_integers
_si4713_write_econtrol_integers:        ; @si4713_write_econtrol_integers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x19, x0
	stur	xzr, [x29, #-40]
	str	wzr, [sp, #48]
	str	xzr, [sp, #40]
	str	wzr, [sp, #36]
	str	xzr, [sp, #24]
	add	x0, x0, #16
	str	wzr, [sp, #20]
	bl	_validate_range
	tbnz	w0, #31, LBB0_14
; %bb.1:
	ldr	w1, [x20, #4]
	add	x8, sp, #20
	str	x8, [sp]
	sub	x2, x29, #40
	add	x3, sp, #48
	add	x4, sp, #44
	add	x5, sp, #40
	add	x6, sp, #36
	add	x7, sp, #24
	mov	x0, x19
	bl	_si4713_choose_econtrol_action
	mov	x21, x0
	tbnz	w0, #31, LBB0_25
; %bb.2:
	ldr	w22, [x20]
	stur	w22, [x29, #-44]
	ldr	w8, [sp, #36]
	cbz	w8, LBB0_15
; %bb.3:
	sdiv	w22, w22, w8
LBB0_4:
	stur	w22, [x29, #-44]
LBB0_5:
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.6:
	ldr	w8, [sp, #44]
	cbz	w8, LBB0_9
; %bb.7:
	ldr	w1, [sp, #40]
	sub	x2, x29, #44
	mov	x0, x19
	bl	_si4713_read_property
	tbnz	w0, #31, LBB0_21
; %bb.8:
	ldur	w0, [x29, #-44]
	ldr	w1, [x20]
	ldp	w3, w2, [sp, #44]
	bl	_set_bits
	mov	x22, x0
	stur	w0, [x29, #-44]
LBB0_9:
	ldr	w1, [sp, #40]
	mov	x0, x19
	mov	x2, x22
	bl	_si4713_write_property
	mov	x21, x0
	tbnz	w0, #31, LBB0_24
; %bb.10:
	ldr	w8, [sp, #44]
	cbz	w8, LBB0_12
; %bb.11:
	ldr	w8, [x20]
	stur	w8, [x29, #-44]
LBB0_12:
	ldr	w8, [sp, #36]
	cbz	w8, LBB0_18
; %bb.13:
	ldur	w9, [x29, #-44]
	mul	w8, w9, w8
	ldur	x9, [x29, #-40]
	str	w8, [x9]
	b	LBB0_24
LBB0_14:
	mov	x21, x0
	b	LBB0_25
LBB0_15:
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_5
; %bb.16:
	ldr	w2, [sp, #20]
	mov	x0, x22
	bl	_usecs_to_dev
	mov	x22, x0
	tbnz	w0, #31, LBB0_22
; %bb.17:
	mov	w21, #0
	b	LBB0_4
LBB0_18:
	ldr	x1, [sp, #24]
	ldur	w0, [x29, #-44]
	cbz	x1, LBB0_23
; %bb.19:
	ldr	w2, [sp, #20]
	bl	_dev_to_usecs
	mov	x21, x0
	tbnz	w0, #31, LBB0_24
; %bb.20:
	ldur	x8, [x29, #-40]
	str	w21, [x8]
	mov	w21, #0
	b	LBB0_24
LBB0_21:
	mov	x21, x0
	b	LBB0_24
LBB0_22:
	mov	x21, x22
	b	LBB0_25
LBB0_23:
	ldur	x8, [x29, #-40]
	str	w0, [x8]
LBB0_24:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_25:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_si4713_write_econtrol_integers
.subsections_via_symbols
