	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __v4l2_flash_init
___v4l2_flash_init:                     ## @__v4l2_flash_init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	testq	%r9, %r9
	je	LBB0_1
## %bb.3:
	movq	%r8, %r15
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%r15, %rax
	movq	%r12, %r15
	addq	$24, %r15
	movq	%r14, 16(%r12)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%r12)
	movq	%rax, (%r12)
	movq	%rbx, 56(%r12)
	testq	%r13, %r13
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_dev_fwnode
	movq	%rax, %r13
LBB0_7:
	movq	%r13, 32(%r12)
	movq	_v4l2_flash_subdev_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_subdev_init
	movq	_v4l2_flash_subdev_internal_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r12)
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 44(%r12)
	movl	40(%r12), %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %esi
	movl	$4, %edx
	callq	_strscpy
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_media_entity_pads_init
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	_MEDIA_ENT_F_FLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_v4l2_flash_init_controls
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movq	32(%r12), %rdi
	callq	_fwnode_handle_get
	movq	%r15, %rdi
	callq	_v4l2_async_register_subdev
	testl	%eax, %eax
	js	LBB0_12
## %bb.15:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_8:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_10:
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_12:
	movl	%eax, %ebx
	movq	32(%r12), %rdi
	callq	_fwnode_handle_put
	movl	28(%r12), %edi
	callq	_v4l2_ctrl_handler_free
LBB0_13:
	movq	%r15, %rdi
	callq	_media_entity_cleanup
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_v4l2_flash_subdev_ops,4,2      ## @v4l2_flash_subdev_ops
	.comm	_v4l2_flash_subdev_internal_ops,4,2 ## @v4l2_flash_subdev_internal_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_MEDIA_ENT_F_FLASH,4,2          ## @MEDIA_ENT_F_FLASH
	.no_dead_strip	___v4l2_flash_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __v4l2_flash_init
___v4l2_flash_init:                     ; @__v4l2_flash_init
	.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
	cbz	x5, LBB0_8
; %bb.1:
	mov	x21, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x20, x0
	add	x19, x0, #24
	stp	x25, x26, [x0, #8]
	str	x24, [x0]
	str	x23, [x0, #56]
	cbnz	x22, LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_dev_fwnode
	mov	x22, x0
LBB0_4:
	str	x22, [x20, #32]
Lloh3:
	adrp	x1, _v4l2_flash_subdev_ops@GOTPAGE
Lloh4:
	ldr	x1, [x1, _v4l2_flash_subdev_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_v4l2_subdev_init
Lloh5:
	adrp	x8, _v4l2_flash_subdev_internal_ops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _v4l2_flash_subdev_internal_ops@GOTPAGEOFF]
	str	x8, [x20, #48]
Lloh7:
	adrp	x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldp	w0, w9, [x20, #40]
	orr	w8, w9, w8
	str	w8, [x20, #44]
	ldr	w1, [x21]
	mov	w2, #4
	bl	_strscpy
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	bl	_media_entity_pads_init
	tbnz	w0, #31, LBB0_12
; %bb.5:
Lloh10:
	adrp	x8, _MEDIA_ENT_F_FLASH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MEDIA_ENT_F_FLASH@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	mov	x0, x20
	mov	x1, x21
	bl	_v4l2_flash_init_controls
	tbnz	w0, #31, LBB0_13
; %bb.6:
	ldr	x0, [x20, #32]
	bl	_fwnode_handle_get
	mov	x0, x19
	bl	_v4l2_async_register_subdev
	tbnz	w0, #31, LBB0_14
; %bb.7:
	mov	x0, x20
	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
LBB0_8:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x22
	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
	b	_ERR_PTR
LBB0_12:
	mov	x22, x0
	b	LBB0_11
LBB0_13:
	mov	x22, x0
	b	LBB0_15
LBB0_14:
	mov	x22, x0
	ldr	x0, [x20, #32]
	bl	_fwnode_handle_put
	ldr	w0, [x20, #28]
	bl	_v4l2_ctrl_handler_free
LBB0_15:
	mov	x0, x19
	bl	_media_entity_cleanup
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_v4l2_flash_subdev_ops,4,2      ; @v4l2_flash_subdev_ops
	.comm	_v4l2_flash_subdev_internal_ops,4,2 ; @v4l2_flash_subdev_internal_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_MEDIA_ENT_F_FLASH,4,2          ; @MEDIA_ENT_F_FLASH
	.no_dead_strip	___v4l2_flash_init
.subsections_via_symbols
