	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_card_setup             ## -- Begin function cx231xx_card_setup
	.p2align	4, 0x90
_cx231xx_card_setup:                    ## @cx231xx_card_setup
	.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
	movq	%rdi, %rbx
	callq	_cx231xx_set_model
	movq	_cx231xx_boards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movl	4(%rax,%rcx,8), %edx
	movl	%edx, 72(%rbx)
	movl	(%rax,%rcx,8), %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, 8(%rbx)
LBB0_2:
	movq	24(%rbx), %rax
	movq	_CX231XX_AVDECODER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	leaq	56(%rbx), %rdi
	movq	48(%rbx), %rsi
	leaq	L_.str(%rip), %rdx
	movl	$68, %ecx
	xorl	%r8d, %r8d
	callq	_v4l2_i2c_new_subdev
	movq	%rax, 64(%rbx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_cx231xx_info
LBB0_5:
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_load_fw@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_cx25840_call
LBB0_6:
	movq	32(%rbx), %rax
	movq	_TUNER_ABSENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	leaq	56(%rbx), %rdi
	movq	40(%rbx), %rsi
	shlq	$2, %rsi
	addq	48(%rbx), %rsi
	movl	8(%rbx), %ecx
	leaq	L_.str.2(%rip), %rdx
	xorl	%r8d, %r8d
	callq	_v4l2_i2c_new_subdev
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_cx231xx_config_tuner           ## TAILCALL
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_cx231xx_info                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cx231xx_boards,8,3             ## @cx231xx_boards
	.comm	_CX231XX_AVDECODER,8,3          ## @CX231XX_AVDECODER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cx25840"

L_.str.1:                               ## @.str.1
	.asciz	"cx25840 subdev registration failure\n"

	.comm	_core,4,2                       ## @core
	.comm	_load_fw,4,2                    ## @load_fw
	.comm	_TUNER_ABSENT,8,3               ## @TUNER_ABSENT
L_.str.2:                               ## @.str.2
	.asciz	"tuner"

L_.str.3:                               ## @.str.3
	.asciz	"tuner subdev registration failure\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_card_setup             ; -- Begin function cx231xx_card_setup
	.p2align	2
_cx231xx_card_setup:                    ; @cx231xx_card_setup
	.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	x19, x0
	bl	_cx231xx_set_model
Lloh0:
	adrp	x8, _cx231xx_boards@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cx231xx_boards@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #3
	ldp	w8, w9, [x8]
	str	w9, [x19, #72]
	cbz	w8, LBB0_2
; %bb.1:
	str	w8, [x19, #8]
LBB0_2:
	ldr	x8, [x19, #24]
Lloh3:
	adrp	x9, _CX231XX_AVDECODER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CX231XX_AVDECODER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	add	x0, x19, #56
	ldr	x1, [x19, #48]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	w3, #68
	mov	x4, #0
	bl	_v4l2_i2c_new_subdev
	str	x0, [x19, #64]
	cbnz	x0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_cx231xx_info
LBB0_5:
Lloh10:
	adrp	x8, _core@GOTPAGE
Lloh11:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _load_fw@GOTPAGE
Lloh14:
	ldr	x8, [x8, _load_fw@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_cx25840_call
LBB0_6:
	ldr	x8, [x19, #32]
Lloh16:
	adrp	x9, _TUNER_ABSENT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TUNER_ABSENT@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	add	x0, x19, #56
	ldp	x9, x8, [x19, #40]
	add	x1, x8, x9, lsl #2
	ldr	w3, [x19, #8]
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x4, #0
	bl	_v4l2_i2c_new_subdev
	str	x0, [x19, #16]
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cx231xx_config_tuner
LBB0_10:
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cx231xx_info
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_cx231xx_boards,8,3             ; @cx231xx_boards
	.comm	_CX231XX_AVDECODER,8,3          ; @CX231XX_AVDECODER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cx25840"

l_.str.1:                               ; @.str.1
	.asciz	"cx25840 subdev registration failure\n"

	.comm	_core,4,2                       ; @core
	.comm	_load_fw,4,2                    ; @load_fw
	.comm	_TUNER_ABSENT,8,3               ; @TUNER_ABSENT
l_.str.2:                               ; @.str.2
	.asciz	"tuner"

l_.str.3:                               ; @.str.3
	.asciz	"tuner subdev registration failure\n"

.subsections_via_symbols
