	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_fw_name
_get_fw_name:                           ## @get_fw_name
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_i2c_get_clientdata
	movl	%eax, %edi
	callq	_to_state
	movq	%rax, %rbx
	movq	_firmware@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpb	$0, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_is_cx2388x
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_is_cx231xx
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rcx, %rax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_firmware,8,3                   ## @firmware
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"v4l-cx23885-avcore-01.fw"

L_.str.1:                               ## @.str.1
	.asciz	"v4l-cx231xx-avcore-01.fw"

L_.str.2:                               ## @.str.2
	.asciz	"v4l-cx25840.fw"

	.no_dead_strip	_get_fw_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_fw_name
_get_fw_name:                           ; @get_fw_name
	.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
	bl	_i2c_get_clientdata
	bl	_to_state
	mov	x19, x0
Lloh0:
	adrp	x8, _firmware@GOTPAGE
Lloh1:
	ldr	x8, [x8, _firmware@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	ldrb	w8, [x0]
	cbnz	w8, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_is_cx2388x
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_is_cx231xx
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh7:
	adrp	x9, l_.str.2@PAGE
Lloh8:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x0, x9, x8, eq
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_firmware,8,3                   ; @firmware
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"v4l-cx23885-avcore-01.fw"

l_.str.1:                               ; @.str.1
	.asciz	"v4l-cx231xx-avcore-01.fw"

l_.str.2:                               ; @.str.2
	.asciz	"v4l-cx25840.fw"

	.no_dead_strip	_get_fw_name
.subsections_via_symbols
