	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_clk_set_rate              ## -- Begin function v4l2_clk_set_rate
	.p2align	4, 0x90
_v4l2_clk_set_rate:                     ## @v4l2_clk_set_rate
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%r15, %rsi
	callq	_clk_round_rate
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_9
## %bb.2:
	movq	16(%r14), %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clk_set_rate                   ## TAILCALL
LBB0_3:
	movq	%r14, %rdi
	callq	_v4l2_clk_lock_driver
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	8(%r14), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*%rcx
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_v4l2_clk_unlock_driver
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_clk_set_rate              ; -- Begin function v4l2_clk_set_rate
	.p2align	2
_v4l2_clk_set_rate:                     ; @v4l2_clk_set_rate
	.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	x21, x1
	mov	x19, x0
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x21
	bl	_clk_round_rate
	mov	x20, x0
	tbnz	x0, #63, LBB0_9
; %bb.2:
	ldr	x0, [x19, #16]
	mov	x1, x20
	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
	b	_clk_set_rate
LBB0_3:
	mov	x0, x19
	bl	_v4l2_clk_lock_driver
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	blr	x8
	mov	x20, x0
	b	LBB0_8
LBB0_6:
	mov	x20, x0
	b	LBB0_9
LBB0_7:
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x19
	bl	_v4l2_clk_unlock_driver
LBB0_9:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
.subsections_via_symbols
