	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx23885_input_init             ## -- Begin function cx23885_input_init
	.p2align	4, 0x90
_cx23885_input_init:                    ## @cx23885_input_init
	.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
	cmpq	$0, 24(%rdi)
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r15
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$17, %eax
	jae	LBB0_1
## %bb.4:
	cltq
	leaq	l_switch.table.cx23885_input_init(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_RC_PROTO_BIT_ALL_IR_DECODER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movq	(%rax), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	%r15, 24(%rax)
	movl	(%rbx), %edi
	movq	_cx23885_boards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str(%rip), %rsi
	callq	_kasprintf
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%rbx), %ebx
	movq	16(%r15), %rdi
	callq	_pci_name
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_kasprintf
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%r12, %rbx
	movq	_RC_DRIVER_IR_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rc_allocate_device
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r12
	movq	%rax, 16(%r14)
	movdqu	(%r14), %xmm0
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
	movdqu	%xmm0, 72(%rax)
	movq	_BUS_PCI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
	movl	$1, 48(%r12)
	movq	16(%r15), %rax
	movq	24(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.13:
	leaq	16(%rax), %rdx
	jmp	LBB0_15
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_14:
	movq	8(%rax), %rcx
	leaq	4(%rax), %rdx
LBB0_15:
	movl	(%rdx), %edx
	movq	%rcx, 56(%r12)
	movl	%edx, 52(%r12)
	movq	%rax, 40(%r12)
	movl	%r13d, 32(%r12)
	movq	%r14, 24(%r12)
	movq	_cx23885_input_ir_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_cx23885_input_ir_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	%rbx, (%r12)
	movq	_MODULE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	%r14, 8(%r15)
	movq	%r12, %rdi
	callq	_rc_register_device
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_cx23885_input_ir_stop
	movq	$0, 8(%r15)
	movq	%r12, %rdi
	callq	_rc_free_device
LBB0_18:
	movq	8(%r14), %rdi
	callq	_kfree
LBB0_19:
	movq	(%r14), %rdi
	callq	_kfree
LBB0_20:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_21
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_RC_PROTO_BIT_ALL_IR_DECODER,4,2 ## @RC_PROTO_BIT_ALL_IR_DECODER
	.comm	_RC_MAP_HAUPPAUGE,8,3           ## @RC_MAP_HAUPPAUGE
	.comm	_RC_MAP_NEC_TERRATEC_CINERGY_XS,8,3 ## @RC_MAP_NEC_TERRATEC_CINERGY_XS
	.comm	_RC_MAP_TEVII_NEC,8,3           ## @RC_MAP_TEVII_NEC
	.comm	_RC_MAP_TOTAL_MEDIA_IN_HAND_02,8,3 ## @RC_MAP_TOTAL_MEDIA_IN_HAND_02
	.comm	_RC_MAP_TBS_NEC,8,3             ## @RC_MAP_TBS_NEC
	.comm	_RC_MAP_DVBSKY,8,3              ## @RC_MAP_DVBSKY
	.comm	_RC_MAP_TT_1500,8,3             ## @RC_MAP_TT_1500
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cx23885 IR (%s)"

	.comm	_cx23885_boards,8,3             ## @cx23885_boards
L_.str.1:                               ## @.str.1
	.asciz	"pci-%s/ir0"

	.comm	_RC_DRIVER_IR_RAW,4,2           ## @RC_DRIVER_IR_RAW
	.comm	_BUS_PCI,4,2                    ## @BUS_PCI
	.comm	_cx23885_input_ir_open,4,2      ## @cx23885_input_ir_open
	.comm	_cx23885_input_ir_close,4,2     ## @cx23885_input_ir_close
	.comm	_MODULE_NAME,4,2                ## @MODULE_NAME
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.cx23885_input_init
l_switch.table.cx23885_input_init:
	.quad	_RC_MAP_TT_1500
	.quad	_RC_MAP_TEVII_NEC
	.quad	_RC_MAP_NEC_TERRATEC_CINERGY_XS
	.quad	_RC_MAP_TBS_NEC
	.quad	_RC_MAP_TBS_NEC
	.quad	_RC_MAP_TOTAL_MEDIA_IN_HAND_02
	.quad	_RC_MAP_HAUPPAUGE
	.quad	_RC_MAP_HAUPPAUGE
	.quad	_RC_MAP_HAUPPAUGE
	.quad	_RC_MAP_HAUPPAUGE
	.quad	_RC_MAP_HAUPPAUGE
	.quad	_RC_MAP_DVBSKY
	.quad	_RC_MAP_DVBSKY
	.quad	_RC_MAP_DVBSKY
	.quad	_RC_MAP_DVBSKY
	.quad	_RC_MAP_DVBSKY
	.quad	_RC_MAP_DVBSKY

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx23885_input_init             ; -- Begin function cx23885_input_init
	.p2align	2
_cx23885_input_init:                    ; @cx23885_input_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #17
	b.hs	LBB0_8
; %bb.2:
Lloh0:
	adrp	x9, l_switch.table.cx23885_input_init@PAGE
Lloh1:
	add	x9, x9, l_switch.table.cx23885_input_init@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
Lloh2:
	adrp	x9, _RC_PROTO_BIT_ALL_IR_DECODER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RC_PROTO_BIT_ALL_IR_DECODER@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x9]
	ldr	x22, [x8]
Lloh5:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.3:
	mov	x19, x0
	str	x20, [x0, #24]
	ldr	w0, [x21]
Lloh7:
	adrp	x8, _cx23885_boards@GOTPAGE
Lloh8:
	ldr	x8, [x8, _cx23885_boards@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldrsw	x9, [x20]
	ldr	w2, [x8, x9, lsl #2]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_kasprintf
	str	x0, [x19]
	cbz	x0, LBB0_12
; %bb.4:
	ldr	w21, [x21]
	ldr	x0, [x20, #16]
	bl	_pci_name
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_kasprintf
	str	x0, [x19, #8]
	cbz	x0, LBB0_13
; %bb.5:
Lloh14:
	adrp	x8, _RC_DRIVER_IR_RAW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RC_DRIVER_IR_RAW@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_rc_allocate_device
	cbz	x0, LBB0_14
; %bb.6:
	mov	x21, x0
	str	x0, [x19, #16]
	ldp	x8, x9, [x19]
	stp	x9, x8, [x0, #72]
Lloh17:
	adrp	x8, _BUS_PCI@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BUS_PCI@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x0, #64]
	mov	w8, #1
	str	w8, [x0, #48]
	ldr	x8, [x20, #16]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_15
; %bb.7:
	add	x10, x8, #16
	b	LBB0_16
LBB0_8:
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_12:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_20
LBB0_13:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_19
LBB0_14:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_18
LBB0_15:
	ldr	x9, [x8, #8]
	add	x10, x8, #4
LBB0_16:
	ldr	w10, [x10]
	str	x9, [x21, #56]
	str	w10, [x21, #52]
	str	x8, [x21, #40]
	str	w23, [x21, #32]
	str	x19, [x21, #24]
Lloh33:
	adrp	x8, _cx23885_input_ir_open@GOTPAGE
Lloh34:
	ldr	x8, [x8, _cx23885_input_ir_open@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [x21, #16]
Lloh36:
	adrp	x8, _cx23885_input_ir_close@GOTPAGE
Lloh37:
	ldr	x8, [x8, _cx23885_input_ir_close@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	x22, [x21]
Lloh39:
	adrp	x9, _MODULE_NAME@GOTPAGE
Lloh40:
	ldr	x9, [x9, _MODULE_NAME@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #8]
	str	x19, [x20, #8]
	mov	x0, x21
	bl	_rc_register_device
	mov	x22, x0
	cbz	w0, LBB0_10
; %bb.17:
	mov	x0, x20
	bl	_cx23885_input_ir_stop
	str	xzr, [x20, #8]
	mov	x0, x21
	bl	_rc_free_device
LBB0_18:
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_19:
	ldr	x0, [x19]
	bl	_kfree
LBB0_20:
	mov	x0, x19
	bl	_kfree
	b	LBB0_10
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_RC_PROTO_BIT_ALL_IR_DECODER,4,2 ; @RC_PROTO_BIT_ALL_IR_DECODER
	.comm	_RC_MAP_HAUPPAUGE,8,3           ; @RC_MAP_HAUPPAUGE
	.comm	_RC_MAP_NEC_TERRATEC_CINERGY_XS,8,3 ; @RC_MAP_NEC_TERRATEC_CINERGY_XS
	.comm	_RC_MAP_TEVII_NEC,8,3           ; @RC_MAP_TEVII_NEC
	.comm	_RC_MAP_TOTAL_MEDIA_IN_HAND_02,8,3 ; @RC_MAP_TOTAL_MEDIA_IN_HAND_02
	.comm	_RC_MAP_TBS_NEC,8,3             ; @RC_MAP_TBS_NEC
	.comm	_RC_MAP_DVBSKY,8,3              ; @RC_MAP_DVBSKY
	.comm	_RC_MAP_TT_1500,8,3             ; @RC_MAP_TT_1500
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cx23885 IR (%s)"

	.comm	_cx23885_boards,8,3             ; @cx23885_boards
l_.str.1:                               ; @.str.1
	.asciz	"pci-%s/ir0"

	.comm	_RC_DRIVER_IR_RAW,4,2           ; @RC_DRIVER_IR_RAW
	.comm	_BUS_PCI,4,2                    ; @BUS_PCI
	.comm	_cx23885_input_ir_open,4,2      ; @cx23885_input_ir_open
	.comm	_cx23885_input_ir_close,4,2     ; @cx23885_input_ir_close
	.comm	_MODULE_NAME,4,2                ; @MODULE_NAME
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.cx23885_input_init
l_switch.table.cx23885_input_init:
	.quad	_RC_MAP_TT_1500
	.quad	_RC_MAP_TEVII_NEC
	.quad	_RC_MAP_NEC_TERRATEC_CINERGY_XS
	.quad	_RC_MAP_TBS_NEC
	.quad	_RC_MAP_TBS_NEC
	.quad	_RC_MAP_TOTAL_MEDIA_IN_HAND_02
	.quad	_RC_MAP_HAUPPAUGE
	.quad	_RC_MAP_HAUPPAUGE
	.quad	_RC_MAP_HAUPPAUGE
	.quad	_RC_MAP_HAUPPAUGE
	.quad	_RC_MAP_HAUPPAUGE
	.quad	_RC_MAP_DVBSKY
	.quad	_RC_MAP_DVBSKY
	.quad	_RC_MAP_DVBSKY
	.quad	_RC_MAP_DVBSKY
	.quad	_RC_MAP_DVBSKY
	.quad	_RC_MAP_DVBSKY

.subsections_via_symbols
