	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k5baf_load_setfile
_s5k5baf_load_setfile:                  ## @s5k5baf_load_setfile
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	addq	$4, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r15
	movq	_S5K5BAF_FW_FILENAME@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-40(%rbp), %rdi
	movq	%rax, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movq	8(%rax), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_s5k5baf_fw_parse
	movl	%eax, %ebx
	movq	-40(%rbp), %rdi
	callq	_release_firmware
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %ebx
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
LBB0_3:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5K5BAF_FW_FILENAME,4,2        ## @S5K5BAF_FW_FILENAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"firmware file (%s) not loaded\n"

	.no_dead_strip	_s5k5baf_load_setfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k5baf_load_setfile
_s5k5baf_load_setfile:                  ; @s5k5baf_load_setfile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	add	x0, x0, #4
	bl	_v4l2_get_subdevdata
	mov	x20, x0
Lloh0:
	adrp	x22, _S5K5BAF_FW_FILENAME@GOTPAGE
Lloh1:
	ldr	x22, [x22, _S5K5BAF_FW_FILENAME@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x0, sp, #8
	mov	x2, x20
	bl	_request_firmware
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w2, w9, #1
	ldr	x3, [x8, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_s5k5baf_fw_parse
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_release_firmware
	b	LBB0_3
LBB0_2:
	mov	x21, x0
	ldr	w2, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_3:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_S5K5BAF_FW_FILENAME,4,2        ; @S5K5BAF_FW_FILENAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"firmware file (%s) not loaded\n"

	.no_dead_strip	_s5k5baf_load_setfile
.subsections_via_symbols
