	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_clk_register              ## -- Begin function v4l2_clk_register
	.p2align	4, 0x90
_v4l2_clk_register:                     ## @v4l2_clk_register
	.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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r13
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.5:
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_kstrdup
	movq	%rax, (%r15)
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rbx, 32(%r15)
	movq	%r12, 24(%r15)
	leaq	16(%r15), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	12(%r15), %rdi
	callq	_mutex_init
	movq	_clk_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	callq	_v4l2_clk_find
	movl	%eax, %edi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	movq	%r15, %rdi
	addq	$8, %rdi
	movq	_clk_list@GOTPCREL(%rip), %rsi
	callq	_list_add_tail
	movq	_clk_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_4
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	jmp	LBB0_11
LBB0_10:
	movq	_clk_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	(%r15), %rdi
	movq	_EEXIST@GOTPCREL(%rip), %rax
LBB0_11:
	subl	(%rax), %r14d
	callq	_kfree
	movq	%r15, %rdi
	callq	_kfree
	movl	%r14d, %edi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_clk_lock,4,2                   ## @clk_lock
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_clk_list,4,2                   ## @clk_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_clk_register              ; -- Begin function v4l2_clk_register
	.p2align	2
_v4l2_clk_register:                     ; @v4l2_clk_register
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_6
; %bb.2:
	mov	x21, x2
	mov	x22, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x19, x0
	ldr	w1, [x23]
	mov	x0, x20
	bl	_kstrdup
	str	x0, [x19]
	cbz	x0, LBB0_9
; %bb.4:
	stp	x21, x22, [x19, #24]
	add	x0, x19, #16
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #12
	bl	_mutex_init
Lloh2:
	adrp	x0, _clk_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _clk_lock@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x20
	bl	_v4l2_clk_find
	bl	_IS_ERR
	cbz	w0, LBB0_10
; %bb.5:
	add	x0, x19, #8
Lloh4:
	adrp	x1, _clk_list@GOTPAGE
Lloh5:
	ldr	x1, [x1, _clk_list@GOTPAGEOFF]
	bl	_list_add_tail
Lloh6:
	adrp	x0, _clk_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _clk_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_9:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh14:
	adrp	x0, _clk_lock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _clk_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	ldr	x0, [x19]
Lloh16:
	adrp	x8, _EEXIST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w20, w8
	bl	_kfree
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_clk_lock,4,2                   ; @clk_lock
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_clk_list,4,2                   ; @clk_list
.subsections_via_symbols
