	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx23888_ir_probe               ## -- Begin function cx23888_ir_probe
	.p2align	4, 0x90
_cx23888_ir_probe:                      ## @cx23888_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	32(%rax), %rdi
	callq	_spin_lock_init
	movq	_CX23888_IR_RX_KFIFO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_kfifo_alloc
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, 24(%r12)
	leaq	12(%r12), %r14
	movq	_cx23888_ir_controller_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l2_subdev_init
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_v4l2_set_subdevdata
	movl	16(%r12), %edi
	movq	(%r15), %rcx
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	_CX23885_HW_888_IR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	leaq	8(%r15), %rdi
	movq	%r14, %rsi
	callq	_v4l2_device_register_subdev
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfifo_free
	jmp	LBB0_6
LBB0_4:
	movq	_CX23888_IR_IRQEN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_cx23888_ir_write4
	leaq	8(%r12), %rdi
	callq	_mutex_init
	movq	_default_rx_params@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_ir@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_rx_s_parameters@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_v4l2_subdev_call
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_mutex_init
	movq	_default_tx_params@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	(%r13), %esi
	movq	_tx_s_parameters@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_v4l2_subdev_call
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CX23888_IR_RX_KFIFO_SIZE,4,2   ## @CX23888_IR_RX_KFIFO_SIZE
	.comm	_cx23888_ir_controller_ops,4,2  ## @cx23888_ir_controller_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/888-ir"

	.comm	_CX23885_HW_888_IR,4,2          ## @CX23885_HW_888_IR
	.comm	_CX23888_IR_IRQEN_REG,4,2       ## @CX23888_IR_IRQEN_REG
	.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	_cx23888_ir_probe               ; -- Begin function cx23888_ir_probe
	.p2align	2
_cx23888_ir_probe:                      ; @cx23888_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	x21, x0
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	add	x0, x0, #32
	bl	_spin_lock_init
Lloh2:
	adrp	x8, _CX23888_IR_RX_KFIFO_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CX23888_IR_RX_KFIFO_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_kfifo_alloc
	cbz	x0, LBB0_4
LBB0_2:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x22
	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_4:
	str	x21, [x19, #24]
	add	x20, x19, #12
Lloh8:
	adrp	x1, _cx23888_ir_controller_ops@GOTPAGE
Lloh9:
	ldr	x1, [x1, _cx23888_ir_controller_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_v4l2_subdev_init
	mov	x0, x20
	mov	x1, x19
	bl	_v4l2_set_subdevdata
	ldr	w0, [x19, #16]
	mov	x22, x21
	ldr	x3, [x22], #8
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
Lloh12:
	adrp	x8, _CX23885_HW_888_IR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CX23885_HW_888_IR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	mov	x0, x22
	mov	x1, x20
	bl	_v4l2_device_register_subdev
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_kfifo_free
	b	LBB0_3
LBB0_6:
Lloh15:
	adrp	x8, _CX23888_IR_IRQEN_REG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CX23888_IR_IRQEN_REG@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_cx23888_ir_write4
	add	x0, x19, #8
	bl	_mutex_init
Lloh18:
	adrp	x8, _default_rx_params@GOTPAGE
Lloh19:
	ldr	x8, [x8, _default_rx_params@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh21:
	adrp	x21, _ir@GOTPAGE
Lloh22:
	ldr	x21, [x21, _ir@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh23:
	adrp	x8, _rx_s_parameters@GOTPAGE
Lloh24:
	ldr	x8, [x8, _rx_s_parameters@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x20
	bl	_v4l2_subdev_call
	add	x0, x19, #4
	bl	_mutex_init
Lloh26:
	adrp	x8, _default_tx_params@GOTPAGE
Lloh27:
	ldr	x8, [x8, _default_tx_params@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w1, [x21]
Lloh29:
	adrp	x8, _tx_s_parameters@GOTPAGE
Lloh30:
	ldr	x8, [x8, _tx_s_parameters@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x20
	bl	_v4l2_subdev_call
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CX23888_IR_RX_KFIFO_SIZE,4,2   ; @CX23888_IR_RX_KFIFO_SIZE
	.comm	_cx23888_ir_controller_ops,4,2  ; @cx23888_ir_controller_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/888-ir"

	.comm	_CX23885_HW_888_IR,4,2          ; @CX23885_HW_888_IR
	.comm	_CX23888_IR_IRQEN_REG,4,2       ; @CX23888_IR_IRQEN_REG
	.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
