	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_au0828_rc_register             ## -- Begin function au0828_rc_register
	.p2align	4, 0x90
_au0828_rc_register:                    ## @au0828_rc_register
	.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
	xorl	%r14d, %r14d
	cmpq	$0, 32(%rdi)
	je	LBB0_13
## %bb.1:
	movq	_disable_ir@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_13
## %bb.2:
	movq	%rdi, %r13
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	callq	_au0828_probe_i2c_ir
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	movq	%rax, %r15
	movq	_RC_DRIVER_IR_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rc_allocate_device
	movq	%rax, %r12
	testq	%r15, %r15
	je	LBB0_12
## %bb.5:
	testq	%r12, %r12
	je	LBB0_12
## %bb.6:
	movq	%r13, 40(%r15)
	movq	%r15, 8(%r13)
	movq	%r12, 32(%r15)
	movq	%r15, 80(%r12)
	movq	_au0828_rc_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r12)
	movq	_au0828_rc_stop@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r12)
	cmpq	$0, 32(%r13)
	je	LBB0_9
## %bb.7:
	cmpl	$128, (%r13)
	jne	LBB0_11
## %bb.8:
	movq	_RC_MAP_HAUPPAUGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
	movq	_au0828_get_key_au8522@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r15)
LBB0_9:
	movl	$100, (%r15)
	movl	4(%r15), %edi
	movq	24(%r13), %rcx
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	16(%r13), %rdi
	movl	8(%r15), %esi
	movl	$4, %edx
	callq	_usb_make_path
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strlcat
	movl	4(%r15), %eax
	movl	%eax, 60(%r12)
	movl	8(%r15), %eax
	movl	%eax, 56(%r12)
	movq	_BUS_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	movl	$1, 24(%r12)
	movq	16(%r13), %rax
	movl	8(%rax), %edi
	callq	_le16_to_cpu
	movq	%rax, 40(%r12)
	movq	16(%r13), %rax
	movl	4(%rax), %edi
	callq	_le16_to_cpu
	movq	%rax, 32(%r12)
	movq	16(%r13), %rax
	movq	%rax, 16(%r12)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r12)
	movq	_RC_PROTO_BIT_NEC@GOTPCREL(%rip), %rax
	movq	_RC_PROTO_BIT_NECX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_RC_PROTO_BIT_NEC32@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_RC_PROTO_BIT_RC5@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 8(%r12)
	movq	%r12, %rdi
	callq	_rc_register_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movl	4(%r15), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_info
	jmp	LBB0_13
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movq	$0, 8(%r13)
	movq	%r12, %rdi
	callq	_rc_free_device
	movq	%r15, %rdi
	callq	_kfree
	movl	%ebx, %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_disable_ir,8,3                 ## @disable_ir
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_RC_DRIVER_IR_RAW,4,2           ## @RC_DRIVER_IR_RAW
	.comm	_au0828_rc_start,4,2            ## @au0828_rc_start
	.comm	_au0828_rc_stop,4,2             ## @au0828_rc_stop
	.comm	_RC_MAP_HAUPPAUGE,4,2           ## @RC_MAP_HAUPPAUGE
	.comm	_au0828_get_key_au8522,4,2      ## @au0828_get_key_au8522
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"au0828 IR (%s)"

L_.str.1:                               ## @.str.1
	.asciz	"/input0"

	.comm	_BUS_USB,4,2                    ## @BUS_USB
L_.str.2:                               ## @.str.2
	.asciz	"au0828-input"

	.comm	_RC_PROTO_BIT_NEC,4,2           ## @RC_PROTO_BIT_NEC
	.comm	_RC_PROTO_BIT_NECX,4,2          ## @RC_PROTO_BIT_NECX
	.comm	_RC_PROTO_BIT_NEC32,4,2         ## @RC_PROTO_BIT_NEC32
	.comm	_RC_PROTO_BIT_RC5,4,2           ## @RC_PROTO_BIT_RC5
L_.str.3:                               ## @.str.3
	.asciz	"Remote controller %s initialized\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_au0828_rc_register             ; -- Begin function au0828_rc_register
	.p2align	2
_au0828_rc_register:                    ; @au0828_rc_register
	.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
	mov	w22, #0
	ldr	x8, [x0, #32]
Lloh0:
	adrp	x9, _disable_ir@GOTPAGE
Lloh1:
	ldr	x9, [x9, _disable_ir@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #0, ne
	b.ne	LBB0_12
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	bl	_au0828_probe_i2c_ir
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	mov	x20, x0
Lloh9:
	adrp	x8, _RC_DRIVER_IR_RAW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RC_DRIVER_IR_RAW@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_rc_allocate_device
	mov	x21, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_5
; %bb.3:
	neg	w22, w23
	b	LBB0_11
LBB0_4:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_5:
	str	x20, [x19, #8]
	stp	x21, x19, [x20, #32]
	str	x20, [x21, #80]
Lloh15:
	adrp	x8, _au0828_rc_start@GOTPAGE
Lloh16:
	ldr	x8, [x8, _au0828_rc_start@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _au0828_rc_stop@GOTPAGE
Lloh19:
	ldr	x9, [x9, _au0828_rc_stop@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #68]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	w8, [x19]
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.7:
Lloh21:
	adrp	x8, _RC_MAP_HAUPPAUGE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RC_MAP_HAUPPAUGE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x21, #64]
Lloh24:
	adrp	x8, _au0828_get_key_au8522@GOTPAGE
Lloh25:
	ldr	x8, [x8, _au0828_get_key_au8522@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	str	x22, [x20, #16]
LBB0_8:
	mov	w8, #100
	str	w8, [x20]
	ldr	w0, [x20, #4]
	ldr	x3, [x19, #24]
Lloh27:
	adrp	x2, l_.str@PAGE
Lloh28:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	x0, [x19, #16]
	ldr	w1, [x20, #8]
	mov	w2, #4
	bl	_usb_make_path
	ldr	w0, [x20, #8]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strlcat
	ldur	d0, [x20, #4]
	rev64.2s	v0, v0
	str	d0, [x21, #56]
Lloh31:
	adrp	x8, _BUS_USB@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BUS_USB@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x21, #48]
	mov	w8, #1
	str	w8, [x21, #24]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #8]
	bl	_le16_to_cpu
	str	x0, [x21, #40]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
	str	x0, [x21, #32]
	ldr	x8, [x19, #16]
Lloh34:
	adrp	x9, l_.str.2@PAGE
Lloh35:
	add	x9, x9, l_.str.2@PAGEOFF
	str	x8, [x21, #16]
	str	x9, [x21]
Lloh36:
	adrp	x8, _RC_PROTO_BIT_NEC@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RC_PROTO_BIT_NEC@GOTPAGEOFF]
Lloh38:
	adrp	x9, _RC_PROTO_BIT_NECX@GOTPAGE
Lloh39:
	ldr	x9, [x9, _RC_PROTO_BIT_NECX@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh42:
	adrp	x9, _RC_PROTO_BIT_NEC32@GOTPAGE
Lloh43:
	ldr	x9, [x9, _RC_PROTO_BIT_NEC32@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh45:
	adrp	x9, _RC_PROTO_BIT_RC5@GOTPAGE
Lloh46:
	ldr	x9, [x9, _RC_PROTO_BIT_RC5@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x21, #8]
	mov	x0, x21
	bl	_rc_register_device
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.9:
	ldr	w1, [x20, #4]
Lloh48:
	adrp	x0, l_.str.3@PAGE
Lloh49:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
	b	LBB0_12
LBB0_10:
Lloh50:
	adrp	x8, _ENODEV@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	str	xzr, [x19, #8]
	mov	x0, x21
	bl	_rc_free_device
	mov	x0, x20
	bl	_kfree
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh40
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_disable_ir,8,3                 ; @disable_ir
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_RC_DRIVER_IR_RAW,4,2           ; @RC_DRIVER_IR_RAW
	.comm	_au0828_rc_start,4,2            ; @au0828_rc_start
	.comm	_au0828_rc_stop,4,2             ; @au0828_rc_stop
	.comm	_RC_MAP_HAUPPAUGE,4,2           ; @RC_MAP_HAUPPAUGE
	.comm	_au0828_get_key_au8522,4,2      ; @au0828_get_key_au8522
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"au0828 IR (%s)"

l_.str.1:                               ; @.str.1
	.asciz	"/input0"

	.comm	_BUS_USB,4,2                    ; @BUS_USB
l_.str.2:                               ; @.str.2
	.asciz	"au0828-input"

	.comm	_RC_PROTO_BIT_NEC,4,2           ; @RC_PROTO_BIT_NEC
	.comm	_RC_PROTO_BIT_NECX,4,2          ; @RC_PROTO_BIT_NECX
	.comm	_RC_PROTO_BIT_NEC32,4,2         ; @RC_PROTO_BIT_NEC32
	.comm	_RC_PROTO_BIT_RC5,4,2           ; @RC_PROTO_BIT_RC5
l_.str.3:                               ; @.str.3
	.asciz	"Remote controller %s initialized\n"

.subsections_via_symbols
