	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zol_setfreq
_zol_setfreq:                           ## @zol_setfreq
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movabsq	$-3689348814741910323, %rcx     ## imm = 0xCCCCCCCCCCCCCCCD
	movq	%rsi, %rax
	mulq	%rcx
	movl	(%r15), %r12d
	shrq	$7, %rdx
	leaq	(%rdx,%rdx), %r14
	addq	$2140, %r14                     ## imm = 0x85C
	leaq	32(%r15), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	%rbx, 8(%r15)
	movq	40(%r15), %rsi
	xorl	%edi, %edi
	callq	_outb
	movq	40(%r15), %rsi
	xorl	%edi, %edi
	callq	_outb
	movq	40(%r15), %rdi
	addq	$3, %rdi
	callq	_inb
	movq	40(%r15), %rsi
	movl	$64, %edi
	callq	_outb
	movq	40(%r15), %rsi
	movl	$192, %edi
	callq	_outb
	movzbl	%r14b, %eax
	shlq	$47, %rax
	andl	$65280, %r14d                   ## imm = 0xFF00
	shlq	$30, %r14
	orq	%rax, %r14
	shll	$31, %r12d
	orq	%r14, %r12
	movabsq	$-4287356287265013760, %r13     ## imm = 0xC480402C10080000
	orq	%r12, %r13
	movl	$-45, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%r12d, %r12d
	testq	%r13, %r13
	setns	%r12b
	movq	40(%r15), %rsi
	orl	$2, %r12d
	shll	$6, %r12d
	movq	%r13, %rbx
	shrq	$57, %rbx
	notl	%ebx
	andl	$64, %ebx
	movl	%r12d, %edi
	callq	_outb
	movl	$50, %edi
	callq	_udelay
	movq	40(%r15), %rsi
	movl	%ebx, %edi
	callq	_outb
	movl	$50, %edi
	callq	_udelay
	movq	40(%r15), %rsi
	movl	%r12d, %edi
	callq	_outb
	movl	$50, %edi
	callq	_udelay
	addq	%r13, %r13
	incl	%r14d
	jne	LBB0_3
## %bb.4:
	movq	40(%r15), %rsi
	movl	$128, %edi
	callq	_outb
	movq	40(%r15), %rsi
	movl	$192, %edi
	callq	_outb
	movq	40(%r15), %rsi
	movl	$64, %edi
	callq	_outb
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_udelay
	movq	40(%r15), %rdi
	addq	$2, %rdi
	callq	_inb
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_udelay
	cmpq	$0, 24(%r15)
	je	LBB0_6
## %bb.5:
	movq	40(%r15), %rsi
	xorl	%edi, %edi
	callq	_outb
	movq	40(%r15), %rsi
	xorl	%edi, %edi
	callq	_outb
	movq	40(%r15), %rdi
	addq	$3, %rdi
	callq	_inb
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_udelay
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	xorl	%ebx, %ebx
	cmpq	$0, 24(%r15)
	jne	LBB0_8
## %bb.7:
	movl	16(%r15), %esi
	movq	%r15, %rdi
	callq	_zol_setvol
	jmp	LBB0_8
LBB0_1:
	addq	$48, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot set a frequency of 0.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_zol_setfreq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zol_setfreq
_zol_setfreq:                           ; @zol_setfreq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	cbz	x1, LBB0_8
; %bb.1:
	mov	x21, x1
	ldr	w22, [x19]
	mov	x8, #-3689348814741910324
	movk	x8, #52429
	umulh	x8, x1, x8
	lsr	x8, x8, #6
	and	x8, x8, #0x3fffffffffffffe
	add	x24, x8, #2140
	lsr	x25, x24, #8
	add	x20, x19, #32
	mov	x0, x20
	bl	_mutex_lock
	str	x21, [x19, #8]
	ldr	x1, [x19, #40]
	mov	w0, #0
	bl	_outb
	ldr	x1, [x19, #40]
	mov	w0, #0
	bl	_outb
	ldr	x8, [x19, #40]
	add	x0, x8, #3
	bl	_inb
	ldr	x1, [x19, #40]
	mov	w0, #64
	bl	_outb
	ldr	x1, [x19, #40]
	mov	w23, #192
	mov	w0, #192
	bl	_outb
	lsl	x8, x24, #47
	and	x8, x8, #0x7f000000000000
	lsl	w9, w22, #31
	bfi	x8, x25, #38, #8
	orr	x8, x8, x9
	mov	x9, #268959744
	movk	x9, #16428, lsl #32
	movk	x9, #50304, lsl #48
	orr	x24, x8, x9
	mov	w25, #-45
	mov	w26, #128
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x19, #40]
	cmp	x24, #0
	csel	w21, w23, w26, ge
	lsr	x8, x24, #57
	mvn	w8, w8
	and	w22, w8, #0x40
	mov	x0, x21
	bl	_outb
	mov	w0, #50
	bl	_udelay
	ldr	x1, [x19, #40]
	mov	x0, x22
	bl	_outb
	mov	w0, #50
	bl	_udelay
	ldr	x1, [x19, #40]
	mov	x0, x21
	bl	_outb
	mov	w0, #50
	bl	_udelay
	lsl	x24, x24, #1
	adds	w25, w25, #1
	b.lo	LBB0_2
; %bb.3:
	ldr	x1, [x19, #40]
	mov	w0, #128
	bl	_outb
	ldr	x1, [x19, #40]
	mov	w0, #192
	bl	_outb
	ldr	x1, [x19, #40]
	mov	w0, #64
	bl	_outb
	mov	w0, #1000
	bl	_udelay
	ldr	x8, [x19, #40]
	add	x0, x8, #2
	bl	_inb
	mov	w0, #1000
	bl	_udelay
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x1, [x19, #40]
	mov	w0, #0
	bl	_outb
	ldr	x1, [x19, #40]
	mov	w0, #0
	bl	_outb
	ldr	x8, [x19, #40]
	add	x0, x8, #3
	bl	_inb
	mov	w0, #1000
	bl	_udelay
LBB0_5:
	mov	x0, x20
	bl	_mutex_unlock
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_7
; %bb.6:
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_zol_setvol
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	add	x0, x19, #48
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_warn
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot set a frequency of 0.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_zol_setfreq
.subsections_via_symbols
