	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k5baf_probe
_s5k5baf_probe:                         ## @s5k5baf_probe
	.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	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	leaq	48(%rax), %rdi
	callq	_mutex_init
	movq	_s5k5baf_cis_rect@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	movq	%rax, 32(%r14)
	movq	%rax, 24(%r14)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_s5k5baf_parse_device_node
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_s5k5baf_configure_subdevs
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movq	%r14, %rdi
	callq	_s5k5baf_configure_gpios
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	movq	%r14, %rdi
	callq	_s5k5baf_configure_regulators
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	movl	12(%r14), %edi
	movq	_S5K5BAF_CLK_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_devm_clk_get
	movl	%eax, 16(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
LBB0_6:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_9:
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_14:
	movq	%r14, %rdi
	callq	_s5k5baf_power_on
	testl	%eax, %eax
	js	LBB0_6
## %bb.15:
	movq	%r14, %rdi
	callq	_s5k5baf_hw_init
	movq	%r14, %rdi
	callq	_s5k5baf_check_fw_revision
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_s5k5baf_power_off
	testl	%ebx, %ebx
	js	LBB0_12
## %bb.16:
	movq	%r14, %rdi
	callq	_s5k5baf_initialize_ctrls
	testl	%eax, %eax
	js	LBB0_11
## %bb.17:
	leaq	4(%r14), %rdi
	callq	_v4l2_async_register_subdev
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_13
## %bb.18:
	movl	%eax, %r15d
	movl	8(%r14), %edi
	callq	_v4l2_ctrl_handler_free
	movl	%r15d, %ebx
	jmp	LBB0_12
LBB0_11:
	movl	%eax, %ebx
LBB0_12:
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_media_entity_cleanup
	movq	%r14, %rdi
	callq	_media_entity_cleanup
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_s5k5baf_cis_rect,8,3           ## @s5k5baf_cis_rect
	.comm	_S5K5BAF_CLK_NAME,4,2           ## @S5K5BAF_CLK_NAME
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.no_dead_strip	_s5k5baf_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k5baf_probe
_s5k5baf_probe:                         ; @s5k5baf_probe
	.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, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	add	x0, x0, #48
	bl	_mutex_init
Lloh3:
	adrp	x8, _s5k5baf_cis_rect@GOTPAGE
Lloh4:
	ldr	x8, [x8, _s5k5baf_cis_rect@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #32]
	str	x8, [x19, #24]
	mov	x0, x19
	mov	x1, x21
	bl	_s5k5baf_parse_device_node
	tbnz	w0, #31, LBB0_7
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_s5k5baf_configure_subdevs
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_s5k5baf_configure_gpios
	tbnz	w0, #31, LBB0_14
; %bb.4:
	mov	x0, x19
	bl	_s5k5baf_configure_regulators
	tbnz	w0, #31, LBB0_14
; %bb.5:
	ldr	w0, [x19, #12]
Lloh6:
	adrp	x8, _S5K5BAF_CLK_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S5K5BAF_CLK_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_devm_clk_get
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_9
LBB0_6:
Lloh9:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_7:
	mov	x20, x0
	b	LBB0_16
LBB0_8:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_16
LBB0_9:
	mov	x0, x19
	bl	_s5k5baf_power_on
	tbnz	w0, #31, LBB0_6
; %bb.10:
	mov	x0, x19
	bl	_s5k5baf_hw_init
	mov	x0, x19
	bl	_s5k5baf_check_fw_revision
	mov	x20, x0
	mov	x0, x19
	bl	_s5k5baf_power_off
	tbnz	w20, #31, LBB0_15
; %bb.11:
	mov	x0, x19
	bl	_s5k5baf_initialize_ctrls
	tbnz	w0, #31, LBB0_14
; %bb.12:
	add	x0, x19, #4
	bl	_v4l2_async_register_subdev
	tbnz	w0, #31, LBB0_17
; %bb.13:
	mov	w20, #0
	b	LBB0_16
LBB0_14:
	mov	x20, x0
LBB0_15:
	add	x0, x19, #4
	bl	_media_entity_cleanup
	mov	x0, x19
	bl	_media_entity_cleanup
LBB0_16:
	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
LBB0_17:
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_v4l2_ctrl_handler_free
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_s5k5baf_cis_rect,8,3           ; @s5k5baf_cis_rect
	.comm	_S5K5BAF_CLK_NAME,4,2           ; @S5K5BAF_CLK_NAME
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.no_dead_strip	_s5k5baf_probe
.subsections_via_symbols
