	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx25840_ir_probe               ## -- Begin function cx25840_ir_probe
	.p2align	4, 0x90
_cx25840_ir_probe:                      ## @cx25840_ir_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	%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
	callq	_to_state
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_is_cx23885
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_is_cx23887
	testq	%rax, %rax
	je	LBB0_10
LBB0_2:
	movq	8(%rbx), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	leaq	20(%rax), %rdi
	callq	_spin_lock_init
	leaq	16(%r15), %rdi
	movq	_CX25840_IR_RX_KFIFO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	callq	_kfifo_alloc
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_5:
	movq	8(%rbx), %rax
	movq	%rax, 8(%r15)
	movq	%r15, (%rbx)
	movq	%rbx, %rdi
	callq	_is_cx23885
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_is_cx23887
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movq	8(%r15), %rdi
	movq	_CX25840_IR_IRQEN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQEN_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_9:
	callq	_cx25840_write4
	movq	%r15, %rdi
	addq	$4, %rdi
	callq	_mutex_init
	movq	_default_rx_params@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_ir@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_rx_s_parameters@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %r12
	movq	%r14, %rdi
	movq	%r12, %rcx
	callq	_v4l2_subdev_call
	movq	%r15, %rdi
	callq	_mutex_init
	movq	_default_tx_params@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	(%rbx), %esi
	movq	_tx_s_parameters@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rcx
	callq	_v4l2_subdev_call
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	8(%r15), %rdi
	movq	_CX25840_IR_IRQEN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CX25840_IR_RX_KFIFO_SIZE,4,2   ## @CX25840_IR_RX_KFIFO_SIZE
	.comm	_CX25840_IR_IRQEN_REG,4,2       ## @CX25840_IR_IRQEN_REG
	.comm	_IRQEN_MSK,4,2                  ## @IRQEN_MSK
	.comm	_default_rx_params,4,2          ## @default_rx_params
	.comm	_ir,4,2                         ## @ir
	.comm	_rx_s_parameters,4,2            ## @rx_s_parameters
	.comm	_default_tx_params,4,2          ## @default_tx_params
	.comm	_tx_s_parameters,4,2            ## @tx_s_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx25840_ir_probe               ; -- Begin function cx25840_ir_probe
	.p2align	2
_cx25840_ir_probe:                      ; @cx25840_ir_probe
	.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
	bl	_to_state
	mov	x21, x0
	bl	_is_cx23885
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_is_cx23887
	cbz	x0, LBB0_9
LBB0_2:
	ldr	x0, [x21, #8]
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x20, x0
	add	x0, x0, #20
	bl	_spin_lock_init
	add	x0, x20, #16
Lloh2:
	adrp	x8, _CX25840_IR_RX_KFIFO_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CX25840_IR_RX_KFIFO_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x22]
	bl	_kfifo_alloc
	cbz	x0, LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_5:
	ldr	x8, [x21, #8]
	str	x8, [x20, #8]
	str	x20, [x21]
	mov	x0, x21
	bl	_is_cx23885
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_is_cx23887
	cbz	x0, LBB0_10
LBB0_7:
	ldr	x0, [x20, #8]
Lloh8:
	adrp	x8, _CX25840_IR_IRQEN_REG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CX25840_IR_IRQEN_REG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _IRQEN_MSK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQEN_MSK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
LBB0_8:
	bl	_cx25840_write4
	add	x0, x20, #4
	bl	_mutex_init
Lloh14:
	adrp	x8, _default_rx_params@GOTPAGE
Lloh15:
	ldr	x8, [x8, _default_rx_params@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh17:
	adrp	x21, _ir@GOTPAGE
Lloh18:
	ldr	x21, [x21, _ir@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh19:
	adrp	x8, _rx_s_parameters@GOTPAGE
Lloh20:
	ldr	x8, [x8, _rx_s_parameters@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x19
	bl	_v4l2_subdev_call
	mov	x0, x20
	bl	_mutex_init
Lloh22:
	adrp	x8, _default_tx_params@GOTPAGE
Lloh23:
	ldr	x8, [x8, _default_tx_params@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w1, [x21]
Lloh25:
	adrp	x8, _tx_s_parameters@GOTPAGE
Lloh26:
	ldr	x8, [x8, _tx_s_parameters@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x19
	bl	_v4l2_subdev_call
	mov	w0, #0
LBB0_9:
	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
LBB0_10:
	ldr	x0, [x20, #8]
Lloh28:
	adrp	x8, _CX25840_IR_IRQEN_REG@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CX25840_IR_IRQEN_REG@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	w2, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CX25840_IR_RX_KFIFO_SIZE,4,2   ; @CX25840_IR_RX_KFIFO_SIZE
	.comm	_CX25840_IR_IRQEN_REG,4,2       ; @CX25840_IR_IRQEN_REG
	.comm	_IRQEN_MSK,4,2                  ; @IRQEN_MSK
	.comm	_default_rx_params,4,2          ; @default_rx_params
	.comm	_ir,4,2                         ; @ir
	.comm	_rx_s_parameters,4,2            ; @rx_s_parameters
	.comm	_default_tx_params,4,2          ; @default_tx_params
	.comm	_tx_s_parameters,4,2            ; @tx_s_parameters
.subsections_via_symbols
