	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_em28xx_register_i2c_ir         ## -- Begin function em28xx_register_i2c_ir
	.p2align	4, 0x90
_em28xx_register_i2c_ir:                ## @em28xx_register_i2c_ir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	$3145759, -32(%rbp)             ## imm = 0x30001F
	movw	$71, -28(%rbp)
	movq	_I2C_CLIENT_END@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	movw	%ax, -26(%rbp)
	movq	_disable_ir@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	-40(%rbp), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_strlcpy
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	jae	LBB0_2
## %bb.3:
	cltq
	leaq	l_switch.table.em28xx_register_i2c_ir(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.em28xx_register_i2c_ir.5(%rip), %rdx
	movq	(%rdx,%rax,8), %rdx
	leaq	l_reltable.em28xx_register_i2c_ir(%rip), %rsi
	movslq	(%rsi,%rax,4), %rax
	addq	%rsi, %rax
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rbx)
	movl	(%rdx), %ecx
	movl	%ecx, 24(%rbx)
	movq	%rax, 8(%rbx)
	jmp	LBB0_4
LBB0_2:
	cmpq	$0, (%r14)
	je	LBB0_5
LBB0_4:
	movq	%r14, -56(%rbp)
LBB0_5:
	addq	$4, %rbx
	leaq	-64(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_i2c_new_probed_device
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_CLIENT_END,4,2             ## @I2C_CLIENT_END
	.comm	_disable_ir,8,3                 ## @disable_ir
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ir_video"

	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.comm	_RC_MAP_EM_TERRATEC,4,2         ## @RC_MAP_EM_TERRATEC
	.comm	_em28xx_get_key_terratec,4,2    ## @em28xx_get_key_terratec
L_.str.1:                               ## @.str.1
	.asciz	"i2c IR (EM28XX Terratec)"

	.comm	_RC_MAP_PINNACLE_GREY,4,2       ## @RC_MAP_PINNACLE_GREY
	.comm	_em28xx_get_key_pinnacle_usb_grey,4,2 ## @em28xx_get_key_pinnacle_usb_grey
L_.str.2:                               ## @.str.2
	.asciz	"i2c IR (EM28XX Pinnacle PCTV)"

	.comm	_RC_MAP_RC5_HAUPPAUGE_NEW,4,2   ## @RC_MAP_RC5_HAUPPAUGE_NEW
	.comm	_em28xx_get_key_em_haup,4,2     ## @em28xx_get_key_em_haup
L_.str.3:                               ## @.str.3
	.asciz	"i2c IR (EM2840 Hauppauge)"

	.comm	_RC_MAP_WINFAST_USBII_DELUXE,4,2 ## @RC_MAP_WINFAST_USBII_DELUXE
	.comm	_em28xx_get_key_winfast_usbii_deluxe,4,2 ## @em28xx_get_key_winfast_usbii_deluxe
L_.str.4:                               ## @.str.4
	.asciz	"i2c IR (EM2820 Winfast TV USBII Deluxe)"

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.em28xx_register_i2c_ir
l_switch.table.em28xx_register_i2c_ir:
	.quad	_RC_MAP_EM_TERRATEC
	.quad	_RC_MAP_PINNACLE_GREY
	.quad	_RC_MAP_WINFAST_USBII_DELUXE
	.quad	_RC_MAP_RC5_HAUPPAUGE_NEW
	.quad	_RC_MAP_EM_TERRATEC

	.p2align	3                               ## @switch.table.em28xx_register_i2c_ir.5
l_switch.table.em28xx_register_i2c_ir.5:
	.quad	_em28xx_get_key_terratec
	.quad	_em28xx_get_key_pinnacle_usb_grey
	.quad	_em28xx_get_key_winfast_usbii_deluxe
	.quad	_em28xx_get_key_em_haup
	.quad	_em28xx_get_key_terratec

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.em28xx_register_i2c_ir
l_reltable.em28xx_register_i2c_ir:
	.long	L_.str.1-l_reltable.em28xx_register_i2c_ir
	.long	L_.str.2-l_reltable.em28xx_register_i2c_ir
	.long	L_.str.4-l_reltable.em28xx_register_i2c_ir
	.long	L_.str.3-l_reltable.em28xx_register_i2c_ir
	.long	L_.str.1-l_reltable.em28xx_register_i2c_ir

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_em28xx_register_i2c_ir         ; -- Begin function em28xx_register_i2c_ir
	.p2align	2
_em28xx_register_i2c_ir:                ; @em28xx_register_i2c_ir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	w8, #31
	movk	w8, #48, lsl #16
	str	w8, [sp, #32]
	mov	w8, #71
Lloh3:
	adrp	x9, _I2C_CLIENT_END@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_CLIENT_END@GOTPAGEOFF]
	strh	w8, [sp, #36]
Lloh5:
	ldr	w8, [x9]
	strh	w8, [sp, #38]
Lloh6:
	adrp	x8, _disable_ir@GOTPAGE
Lloh7:
	ldr	x8, [x8, _disable_ir@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbnz	x8, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x20, x19, #8
	mov	x0, x20
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w0, [sp, #24]
Lloh9:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strlcpy
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hs	LBB0_3
; %bb.2:
	sbfiz	x8, x8, #3, #32
Lloh14:
	adrp	x9, l_switch.table.em28xx_register_i2c_ir@PAGE
Lloh15:
	add	x9, x9, l_switch.table.em28xx_register_i2c_ir@PAGEOFF
	ldr	x9, [x9, x8]
Lloh16:
	adrp	x10, l_switch.table.em28xx_register_i2c_ir.5@PAGE
Lloh17:
	add	x10, x10, l_switch.table.em28xx_register_i2c_ir.5@PAGEOFF
	ldr	x10, [x10, x8]
Lloh18:
	adrp	x11, l_switch.table.em28xx_register_i2c_ir.6@PAGE
Lloh19:
	add	x11, x11, l_switch.table.em28xx_register_i2c_ir.6@PAGEOFF
	ldr	x8, [x11, x8]
	ldr	w9, [x9]
	str	w9, [x19, #28]
	ldr	w9, [x10]
	str	w9, [x19, #24]
	str	x8, [x19, #8]
	b	LBB0_4
LBB0_3:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
LBB0_4:
	str	x20, [sp, #8]
LBB0_5:
	add	x0, x19, #4
	mov	x1, sp
	add	x2, sp, #32
	bl	_i2c_new_probed_device
LBB0_6:
	ldur	x8, [x29, #-24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_CLIENT_END,4,2             ; @I2C_CLIENT_END
	.comm	_disable_ir,8,3                 ; @disable_ir
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ir_video"

	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.comm	_RC_MAP_EM_TERRATEC,4,2         ; @RC_MAP_EM_TERRATEC
	.comm	_em28xx_get_key_terratec,4,2    ; @em28xx_get_key_terratec
l_.str.1:                               ; @.str.1
	.asciz	"i2c IR (EM28XX Terratec)"

	.comm	_RC_MAP_PINNACLE_GREY,4,2       ; @RC_MAP_PINNACLE_GREY
	.comm	_em28xx_get_key_pinnacle_usb_grey,4,2 ; @em28xx_get_key_pinnacle_usb_grey
l_.str.2:                               ; @.str.2
	.asciz	"i2c IR (EM28XX Pinnacle PCTV)"

	.comm	_RC_MAP_RC5_HAUPPAUGE_NEW,4,2   ; @RC_MAP_RC5_HAUPPAUGE_NEW
	.comm	_em28xx_get_key_em_haup,4,2     ; @em28xx_get_key_em_haup
l_.str.3:                               ; @.str.3
	.asciz	"i2c IR (EM2840 Hauppauge)"

	.comm	_RC_MAP_WINFAST_USBII_DELUXE,4,2 ; @RC_MAP_WINFAST_USBII_DELUXE
	.comm	_em28xx_get_key_winfast_usbii_deluxe,4,2 ; @em28xx_get_key_winfast_usbii_deluxe
l_.str.4:                               ; @.str.4
	.asciz	"i2c IR (EM2820 Winfast TV USBII Deluxe)"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.em28xx_register_i2c_ir
l_switch.table.em28xx_register_i2c_ir:
	.quad	_RC_MAP_EM_TERRATEC
	.quad	_RC_MAP_PINNACLE_GREY
	.quad	_RC_MAP_WINFAST_USBII_DELUXE
	.quad	_RC_MAP_RC5_HAUPPAUGE_NEW
	.quad	_RC_MAP_EM_TERRATEC

	.p2align	3                               ; @switch.table.em28xx_register_i2c_ir.5
l_switch.table.em28xx_register_i2c_ir.5:
	.quad	_em28xx_get_key_terratec
	.quad	_em28xx_get_key_pinnacle_usb_grey
	.quad	_em28xx_get_key_winfast_usbii_deluxe
	.quad	_em28xx_get_key_em_haup
	.quad	_em28xx_get_key_terratec

	.p2align	3                               ; @switch.table.em28xx_register_i2c_ir.6
l_switch.table.em28xx_register_i2c_ir.6:
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.4
	.quad	l_.str.3
	.quad	l_.str.1

.subsections_via_symbols
