	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa_camera_sensor_unbind
_pxa_camera_sensor_unbind:              ## @pxa_camera_sensor_unbind
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	(%rdi), %edi
	callq	_v4l2_dev_to_pcdev
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_pcdev_to_dev
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_info
	movq	_CICR0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%rbx), %rsi
	movl	$1023, %edi                     ## imm = 0x3FF
	callq	___raw_writel
	movq	%rbx, %rdi
	callq	_pxa_dma_stop_channels
	movq	%rbx, %rdi
	callq	_pxa_camera_destroy_formats
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_v4l2_clk_unregister
	movq	$0, 24(%rbx)
LBB0_2:
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_video_unregister_device
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PXA Camera driver detached from camera %s\n"

	.comm	_CICR0,8,3                      ## @CICR0
	.no_dead_strip	_pxa_camera_sensor_unbind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa_camera_sensor_unbind
_pxa_camera_sensor_unbind:              ; @pxa_camera_sensor_unbind
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	ldr	w0, [x0]
	bl	_v4l2_dev_to_pcdev
	mov	x19, x0
	bl	_mutex_lock
	mov	x0, x19
	bl	_pcdev_to_dev
	ldr	w2, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	x8, [x19, #32]
Lloh2:
	adrp	x9, _CICR0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CICR0@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1023
	bl	___raw_writel
	mov	x0, x19
	bl	_pxa_dma_stop_channels
	mov	x0, x19
	bl	_pxa_camera_destroy_formats
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_v4l2_clk_unregister
	str	xzr, [x19, #24]
LBB0_2:
	add	x0, x19, #16
	bl	_video_unregister_device
	str	xzr, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PXA Camera driver detached from camera %s\n"

	.comm	_CICR0,8,3                      ; @CICR0
	.no_dead_strip	_pxa_camera_sensor_unbind
.subsections_via_symbols
