	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function redrat3_dev_probe
_redrat3_dev_probe:                     ## @redrat3_dev_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_interface_to_usbdev
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rsi
	cmpl	$0, 8(%rsi)
	jle	LBB0_26
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	_USB_ENDPOINT_DIR_MASK@GOTPCREL(%rip), %rcx
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rdi
	movq	_USB_ENDPOINT_XFERTYPE_MASK@GOTPCREL(%rip), %r8
	movq	_USB_ENDPOINT_XFER_BULK@GOTPCREL(%rip), %r9
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r10d, %r10d
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r10d, %r10d
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	8(%rsi), %rax
	addq	$12, %rbx
	cmpq	%rax, %r13
	jge	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rax
	leaq	(%rax,%rbx), %r15
	movl	(%rax,%rbx), %r14d
	movl	4(%rax,%rbx), %r12d
	movl	(%rcx), %eax
	andl	%r14d, %eax
	cmpl	(%rdi), %eax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r8), %eax
	andl	%r12d, %eax
	cmpl	(%r9), %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movq	%r10, -72(%rbp)                 ## 8-byte Spill
	callq	_dev_dbg
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	movq	_USB_ENDPOINT_XFER_BULK@GOTPCREL(%rip), %r9
	movq	_USB_ENDPOINT_XFERTYPE_MASK@GOTPCREL(%rip), %r8
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rdi
	movq	_USB_ENDPOINT_DIR_MASK@GOTPCREL(%rip), %rcx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movslq	(%r15), %rdx
	movq	_RR3_NARROW_IN_EP_ADDR@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmoveq	%r15, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_RR3_WIDE_IN_EP_ADDR@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmoveq	%r15, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%r10, %r10
	jne	LBB0_3
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %edx
	testq	%r10, %r10
	jne	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	andl	(%rcx), %r14d
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_2
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	andl	(%r8), %r12d
	cmpl	(%r9), %r12d
	jne	LBB0_2
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_dbg
	movq	_USB_ENDPOINT_XFER_BULK@GOTPCREL(%rip), %r9
	movq	_USB_ENDPOINT_XFERTYPE_MASK@GOTPCREL(%rip), %r8
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rdi
	movq	_USB_ENDPOINT_DIR_MASK@GOTPCREL(%rip), %rcx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %r10
	jmp	LBB0_3
LBB0_13:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	movl	$0, %r14d
	je	LBB0_26
## %bb.14:
	testq	%r10, %r10
	je	LBB0_26
## %bb.15:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_26
## %bb.16:
	movq	%r10, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$176, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_27
## %bb.17:
	movq	%rax, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 168(%r12)
	movq	%rbx, 160(%r12)
	movq	%r15, 152(%r12)
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, 8(%r12)
	movl	(%r14), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 144(%r12)
	testq	%rax, %rax
	je	LBB0_31
## %bb.18:
	movl	(%r14), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 128(%r12)
	testq	%rax, %rax
	je	LBB0_31
## %bb.19:
	movl	8(%rbx), %edi
	callq	_le16_to_cpu
	movl	(%r14), %edx
	leaq	136(%r12), %rcx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_usb_alloc_coherent
	movl	%eax, 140(%r12)
	testl	%eax, %eax
	je	LBB0_31
## %bb.20:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_usb_rcvbulkpipe
	movl	%eax, %r13d
	movq	144(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	140(%r12), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	8(%rbx), %edi
	callq	_le16_to_cpu
	movq	_redrat3_handle_async@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	subq	$8, %rsp
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r13d, %edx
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	pushq	%r12
	callq	_usb_fill_bulk_urb
	addq	$16, %rsp
	movl	136(%r12), %eax
	movq	144(%r12), %rcx
	movl	%eax, 4(%rcx)
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rcx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_usb_rcvbulkpipe
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	128(%r12), %r13
	movl	140(%r12), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	8(%rbx), %edi
	callq	_le16_to_cpu
	movq	_redrat3_handle_async@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	subq	$8, %rsp
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	pushq	%r12
	callq	_usb_fill_bulk_urb
	addq	$16, %rsp
	movl	136(%r12), %eax
	movq	128(%r12), %rcx
	movl	%eax, 4(%rcx)
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rcx)
	movq	%r12, %rdi
	callq	_redrat3_reset
	movq	%r12, %rdi
	callq	_redrat3_get_firmware_rev
	movl	$38000, (%r12)                  ## imm = 0x9470
	leaq	120(%r12), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movl	(%r14), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 72(%r12)
	testq	%rax, %rax
	je	LBB0_31
## %bb.21:
	movl	(%r14), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 112(%r12)
	testq	%rax, %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_32
## %bb.22:
	leaq	88(%r12), %r14
	movl	$192, 88(%r12)
	movq	_RR3_MODSIG_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%r12)
	movl	$1, %edi
	callq	_cpu_to_le16
	movq	%rax, 96(%r12)
	movq	112(%r12), %r15
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	leaq	80(%r12), %r8
	movq	_redrat3_learn_complete@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movq	%r14, %rcx
	movl	$4, %r9d
	pushq	%r12
	pushq	%r10
	callq	_usb_fill_control_urb
	addq	$16, %rsp
	leaq	48(%r12), %r14
	movl	$192, 48(%r12)
	movq	_RR3_BLINK_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
	movl	$1, %edi
	callq	_cpu_to_le16
	movq	%rax, 56(%r12)
	movq	72(%r12), %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	leaq	44(%r12), %r8
	movq	_redrat3_led_complete@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movq	%r14, %rcx
	movl	$4, %r9d
	pushq	%r12
	pushq	%r10
	callq	_usb_fill_control_urb
	addq	$16, %rsp
	movq	%r12, %r14
	addq	$16, %r14
	leaq	L_.str.3(%rip), %rax
	movq	%rax, 16(%r12)
	leaq	L_.str.4(%rip), %rax
	movq	%rax, 24(%r12)
	movq	_redrat3_brightness_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_led_classdev_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_32
## %bb.23:
	movq	%r12, %rdi
	callq	_redrat3_init_rc_dev
	movl	%eax, 40(%r12)
	testl	%eax, %eax
	je	LBB0_34
## %bb.24:
	movq	%r12, %rdi
	callq	_redrat3_enable_detector
	testl	%eax, %eax
	js	LBB0_35
## %bb.25:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_usb_set_intfdata
	xorl	%ebx, %ebx
	jmp	LBB0_33
LBB0_26:
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %ebx
	jmp	LBB0_33
LBB0_31:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_32:
	movq	8(%r12), %rsi
	movq	%r12, %rdi
	callq	_redrat3_delete
	jmp	LBB0_33
LBB0_27:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_33:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	xorl	%ebx, %ebx
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_36
LBB0_35:
	movl	%eax, %ebx
LBB0_36:
	movq	%r14, %rdi
	callq	_led_classdev_unregister
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_USB_ENDPOINT_DIR_MASK,4,2      ## @USB_ENDPOINT_DIR_MASK
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_ENDPOINT_XFERTYPE_MASK,4,2 ## @USB_ENDPOINT_XFERTYPE_MASK
	.comm	_USB_ENDPOINT_XFER_BULK,4,2     ## @USB_ENDPOINT_XFER_BULK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"found bulk-in endpoint at 0x%02x\n"

	.comm	_RR3_NARROW_IN_EP_ADDR,8,3      ## @RR3_NARROW_IN_EP_ADDR
	.comm	_RR3_WIDE_IN_EP_ADDR,8,3        ## @RR3_WIDE_IN_EP_ADDR
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
L_.str.1:                               ## @.str.1
	.asciz	"found bulk-out endpoint at 0x%02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Couldn't find all endpoints\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_redrat3_handle_async,4,2       ## @redrat3_handle_async
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.comm	_RR3_MODSIG_CAPTURE,4,2         ## @RR3_MODSIG_CAPTURE
	.comm	_redrat3_learn_complete,4,2     ## @redrat3_learn_complete
	.comm	_RR3_BLINK_LED,4,2              ## @RR3_BLINK_LED
	.comm	_redrat3_led_complete,4,2       ## @redrat3_led_complete
L_.str.3:                               ## @.str.3
	.asciz	"redrat3:red:feedback"

L_.str.4:                               ## @.str.4
	.asciz	"rc-feedback"

	.comm	_redrat3_brightness_set,4,2     ## @redrat3_brightness_set
	.no_dead_strip	_redrat3_dev_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function redrat3_dev_probe
_redrat3_dev_probe:                     ; @redrat3_dev_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_interface_to_usbdev
	stp	x0, x19, [sp, #8]               ; 16-byte Folded Spill
	ldr	x25, [x19, #8]
	ldr	w8, [x25, #8]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.1:
	mov	x26, #0
	mov	x20, #0
	mov	x28, #0
	str	xzr, [sp, #24]                  ; 8-byte Folded Spill
	mov	x27, #0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
Lloh3:
	adrp	x23, _USB_ENDPOINT_DIR_MASK@GOTPAGE
Lloh4:
	ldr	x23, [x23, _USB_ENDPOINT_DIR_MASK@GOTPAGEOFF]
Lloh5:
	adrp	x22, _USB_DIR_IN@GOTPAGE
Lloh6:
	ldr	x22, [x22, _USB_DIR_IN@GOTPAGEOFF]
Lloh7:
	adrp	x10, _USB_ENDPOINT_XFERTYPE_MASK@GOTPAGE
Lloh8:
	ldr	x10, [x10, _USB_ENDPOINT_XFERTYPE_MASK@GOTPAGEOFF]
Lloh9:
	adrp	x11, _USB_ENDPOINT_XFER_BULK@GOTPAGE
Lloh10:
	ldr	x11, [x11, _USB_ENDPOINT_XFER_BULK@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x25, #8]
	add	x26, x26, #12
	cmp	x20, x8
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x21, x8, x26
	ldp	w24, w19, [x21]
	ldr	w8, [x23]
	and	w8, w8, w24
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x10]
	and	w8, w8, w19
	ldr	w9, [x11]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_dev_dbg
Lloh13:
	adrp	x11, _USB_ENDPOINT_XFER_BULK@GOTPAGE
Lloh14:
	ldr	x11, [x11, _USB_ENDPOINT_XFER_BULK@GOTPAGEOFF]
Lloh15:
	adrp	x10, _USB_ENDPOINT_XFERTYPE_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _USB_ENDPOINT_XFERTYPE_MASK@GOTPAGEOFF]
	ldrsw	x2, [x21]
Lloh17:
	adrp	x8, _RR3_NARROW_IN_EP_ADDR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RR3_NARROW_IN_EP_ADDR@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x8, x2
	csel	x28, x21, x28, eq
Lloh20:
	adrp	x8, _RR3_WIDE_IN_EP_ADDR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RR3_WIDE_IN_EP_ADDR@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x8, x2
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	csel	x8, x21, x8, eq
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	cbnz	x27, LBB0_3
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, x24
	cbnz	x27, LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	and	w8, w8, w24
Lloh23:
	adrp	x9, _USB_DIR_OUT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _USB_DIR_OUT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x10]
	and	w8, w8, w19
	ldr	w9, [x11]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_dbg
Lloh28:
	adrp	x11, _USB_ENDPOINT_XFER_BULK@GOTPAGE
Lloh29:
	ldr	x11, [x11, _USB_ENDPOINT_XFER_BULK@GOTPAGEOFF]
Lloh30:
	adrp	x10, _USB_ENDPOINT_XFERTYPE_MASK@GOTPAGE
Lloh31:
	ldr	x10, [x10, _USB_ENDPOINT_XFERTYPE_MASK@GOTPAGEOFF]
	mov	x27, x21
	b	LBB0_3
LBB0_11:
	cbz	x28, LBB0_24
; %bb.12:
	cbz	x27, LBB0_24
; %bb.13:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_24
; %bb.14:
Lloh32:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh33:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	w0, #176
	bl	_kzalloc
	cbz	x0, LBB0_27
; %bb.15:
	mov	x22, x0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	stp	x28, x8, [x0, #160]
	str	x27, [x0, #152]
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
	str	x27, [x0, #8]
	ldr	w1, [x26]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x22, #144]
	cbz	x0, LBB0_25
; %bb.16:
	ldr	w1, [x26]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x22, #128]
	cbz	x0, LBB0_25
; %bb.17:
	ldr	w0, [x28, #8]
	bl	_le16_to_cpu
	mov	x1, x0
	ldr	w2, [x26]
	add	x3, x22, #136
	mov	x0, x27
	bl	_usb_alloc_coherent
	str	w0, [x22, #140]
	cbz	w0, LBB0_25
; %bb.18:
	ldr	w1, [x28]
	mov	x0, x27
	bl	_usb_rcvbulkpipe
	mov	x23, x0
	ldr	x24, [x22, #144]
	ldr	w25, [x22, #140]
	ldr	w0, [x28, #8]
	bl	_le16_to_cpu
	mov	x4, x0
Lloh34:
	adrp	x19, _redrat3_handle_async@GOTPAGE
Lloh35:
	ldr	x19, [x19, _redrat3_handle_async@GOTPAGEOFF]
	ldr	w5, [x19]
	mov	x0, x24
	mov	x1, x27
	mov	x2, x23
	mov	x3, x25
	mov	x6, x22
	bl	_usb_fill_bulk_urb
	ldr	w8, [x22, #136]
	ldr	x9, [x22, #144]
Lloh36:
	adrp	x20, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh37:
	ldr	x20, [x20, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
	ldr	w10, [x20]
	ldr	w11, [x9]
	orr	w10, w11, w10
	stp	w10, w8, [x9]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w1, [x8]
	mov	x0, x27
	bl	_usb_rcvbulkpipe
	mov	x23, x0
	ldr	x24, [x22, #128]
	ldr	w25, [x22, #140]
	ldr	w0, [x28, #8]
	bl	_le16_to_cpu
	mov	x4, x0
	ldr	w5, [x19]
	mov	x0, x24
	mov	x1, x27
	mov	x2, x23
	mov	x3, x25
	mov	x6, x22
	bl	_usb_fill_bulk_urb
	ldr	w8, [x22, #136]
	ldr	x9, [x22, #128]
	ldr	w10, [x20]
	ldr	w11, [x9]
	orr	w10, w11, w10
	stp	w10, w8, [x9]
	mov	x0, x22
	bl	_redrat3_reset
	mov	x0, x22
	bl	_redrat3_get_firmware_rev
	mov	w8, #38000
	str	w8, [x22]
	add	x0, x22, #120
	mov	w1, #0
	bl	_atomic_set
	ldr	w1, [x26]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x22, #72]
	cbz	x0, LBB0_25
; %bb.19:
	ldr	w1, [x26]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x22, #112]
	ldr	w19, [sp, #4]                   ; 4-byte Folded Reload
	cbz	x0, LBB0_26
; %bb.20:
	mov	w19, #192
	mov	x21, x22
	str	w19, [x21, #88]!
Lloh38:
	adrp	x8, _RR3_MODSIG_CAPTURE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RR3_MODSIG_CAPTURE@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [x22, #104]
	mov	w0, #1
	bl	_cpu_to_le16
	str	x0, [x22, #96]
	ldr	x23, [x22, #112]
	mov	x0, x27
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x2, x0
	add	x4, x22, #80
Lloh41:
	adrp	x8, _redrat3_learn_complete@GOTPAGE
Lloh42:
	ldr	x8, [x8, _redrat3_learn_complete@GOTPAGEOFF]
Lloh43:
	ldr	w6, [x8]
	mov	x0, x23
	mov	x1, x27
	mov	x3, x21
	mov	w5, #4
	mov	x7, x22
	bl	_usb_fill_control_urb
	mov	x21, x22
	str	w19, [x21, #48]!
Lloh44:
	adrp	x8, _RR3_BLINK_LED@GOTPAGE
Lloh45:
	ldr	x8, [x8, _RR3_BLINK_LED@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	str	w8, [x22, #64]
	mov	w0, #1
	bl	_cpu_to_le16
	str	x0, [x22, #56]
	ldr	x23, [x22, #72]
	mov	x0, x27
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x2, x0
	add	x4, x22, #44
Lloh47:
	adrp	x8, _redrat3_led_complete@GOTPAGE
Lloh48:
	ldr	x8, [x8, _redrat3_led_complete@GOTPAGEOFF]
Lloh49:
	ldr	w6, [x8]
	mov	x0, x23
	mov	x1, x27
	mov	x3, x21
	mov	w5, #4
	mov	x7, x22
	bl	_usb_fill_control_urb
Lloh50:
	adrp	x8, l_.str.3@PAGE
Lloh51:
	add	x9, x8, l_.str.3@PAGEOFF
	mov	x20, x22
Lloh52:
	adrp	x8, l_.str.4@PAGE
Lloh53:
	add	x8, x8, l_.str.4@PAGEOFF
	stp	x9, x8, [x20, #16]!
Lloh54:
	adrp	x8, _redrat3_brightness_set@GOTPAGE
Lloh55:
	ldr	x8, [x8, _redrat3_brightness_set@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x20
	bl	_led_classdev_register
	mov	x19, x0
	cbnz	w0, LBB0_26
; %bb.21:
	mov	x0, x22
	bl	_redrat3_init_rc_dev
	str	w0, [x22, #40]
	cbz	w0, LBB0_29
; %bb.22:
	mov	x0, x22
	bl	_redrat3_enable_detector
	tbnz	w0, #31, LBB0_30
; %bb.23:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x22
	bl	_usb_set_intfdata
	mov	w19, #0
	b	LBB0_28
LBB0_24:
Lloh57:
	adrp	x1, l_.str.2@PAGE
Lloh58:
	add	x1, x1, l_.str.2@PAGEOFF
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_dev_err
Lloh59:
	adrp	x8, _ENODEV@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_28
LBB0_25:
	ldr	w19, [sp, #4]                   ; 4-byte Folded Reload
LBB0_26:
	ldr	x1, [x22, #8]
	mov	x0, x22
	bl	_redrat3_delete
	b	LBB0_28
LBB0_27:
	ldr	w19, [sp, #4]                   ; 4-byte Folded Reload
LBB0_28:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_29:
Lloh62:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh63:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_31
LBB0_30:
	mov	x19, x0
LBB0_31:
	mov	x0, x20
	bl	_led_classdev_unregister
	b	LBB0_26
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdrp	Lloh50, Lloh52
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_USB_ENDPOINT_DIR_MASK,4,2      ; @USB_ENDPOINT_DIR_MASK
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_ENDPOINT_XFERTYPE_MASK,4,2 ; @USB_ENDPOINT_XFERTYPE_MASK
	.comm	_USB_ENDPOINT_XFER_BULK,4,2     ; @USB_ENDPOINT_XFER_BULK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found bulk-in endpoint at 0x%02x\n"

	.comm	_RR3_NARROW_IN_EP_ADDR,8,3      ; @RR3_NARROW_IN_EP_ADDR
	.comm	_RR3_WIDE_IN_EP_ADDR,8,3        ; @RR3_WIDE_IN_EP_ADDR
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
l_.str.1:                               ; @.str.1
	.asciz	"found bulk-out endpoint at 0x%02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Couldn't find all endpoints\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_redrat3_handle_async,4,2       ; @redrat3_handle_async
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.comm	_RR3_MODSIG_CAPTURE,4,2         ; @RR3_MODSIG_CAPTURE
	.comm	_redrat3_learn_complete,4,2     ; @redrat3_learn_complete
	.comm	_RR3_BLINK_LED,4,2              ; @RR3_BLINK_LED
	.comm	_redrat3_led_complete,4,2       ; @redrat3_led_complete
l_.str.3:                               ; @.str.3
	.asciz	"redrat3:red:feedback"

l_.str.4:                               ; @.str.4
	.asciz	"rc-feedback"

	.comm	_redrat3_brightness_set,4,2     ; @redrat3_brightness_set
	.no_dead_strip	_redrat3_dev_probe
.subsections_via_symbols
