	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxrc_probe
_pxrc_probe:                            ## @pxrc_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_interface_to_usbdev
	movq	%rax, %r14
	movl	4(%r13), %edi
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_usb_find_common_endpoints
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_12
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %rdi
	addq	$24, %rdi
	callq	_mutex_init
	movq	%r13, 16(%r15)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_usb_set_intfdata
	movq	-48(%rbp), %rdi
	callq	_usb_endpoint_maxp
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_devm_kmalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %r12
	movl	(%rbx), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movl	%eax, 12(%r15)
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movq	_pxrc_free_urb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_devm_add_action_or_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movl	12(%r15), %ebx
	movq	-48(%rbp), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_usb_rcvintpipe
	movq	_pxrc_usb_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	movq	%r12, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	pushq	$1
	pushq	%r15
	callq	_usb_fill_int_urb
	addq	$16, %rsp
	movq	%r13, %rdi
	callq	_devm_input_allocate_device
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, (%rax)
	movl	8(%r15), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_usb_make_path
	movl	8(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	$4, %edx
	callq	_strlcat
	movl	8(%r15), %eax
	movq	(%r15), %rsi
	movl	%eax, 20(%rsi)
	addq	$16, %rsi
	movq	%r14, %rdi
	callq	_usb_to_input_id
	movq	_pxrc_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rdi
	movl	%eax, 12(%rdi)
	movq	_pxrc_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BTN_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_input_set_capability
	movq	(%r15), %rdi
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	(%r15), %rdi
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	(%r15), %rdi
	movq	_ABS_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	(%r15), %rdi
	movq	_ABS_RY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	(%r15), %rdi
	movq	_ABS_RUDDER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	(%r15), %rdi
	movq	_ABS_THROTTLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	(%r15), %rdi
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	(%r15), %rdi
	movq	%r15, %rsi
	callq	_input_set_drvdata
	movq	(%r15), %rdi
	callq	_input_register_device
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not find endpoint\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pxrc_free_urb,4,2              ## @pxrc_free_urb
	.comm	_pxrc_usb_irq,4,2               ## @pxrc_usb_irq
L_.str.1:                               ## @.str.1
	.asciz	"couldn't allocate input device\n"

L_.str.2:                               ## @.str.2
	.asciz	"PXRC Flight Controller Adapter"

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

	.comm	_pxrc_open,4,2                  ## @pxrc_open
	.comm	_pxrc_close,4,2                 ## @pxrc_close
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_BTN_A,4,2                      ## @BTN_A
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_RX,4,2                     ## @ABS_RX
	.comm	_ABS_RY,4,2                     ## @ABS_RY
	.comm	_ABS_RUDDER,4,2                 ## @ABS_RUDDER
	.comm	_ABS_THROTTLE,4,2               ## @ABS_THROTTLE
	.comm	_ABS_MISC,4,2                   ## @ABS_MISC
	.no_dead_strip	_pxrc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxrc_probe
_pxrc_probe:                            ; @pxrc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	bl	_interface_to_usbdev
	mov	x20, x0
	ldr	w0, [x21, #4]
	add	x3, sp, #8
	mov	x1, #0
	mov	x2, #0
	mov	x4, #0
	bl	_usb_find_common_endpoints
	cbz	w0, LBB0_2
; %bb.1:
	mov	x24, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_10
LBB0_2:
Lloh2:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x21
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x19, x0
	add	x0, x0, #24
	bl	_mutex_init
	str	x21, [x19, #16]
	mov	x0, x21
	mov	x1, x19
	bl	_usb_set_intfdata
	ldr	x0, [sp, #8]
	bl	_usb_endpoint_maxp
	mov	x22, x0
	ldr	w2, [x24]
	mov	x0, x21
	mov	x1, x22
	bl	_devm_kmalloc
	cbz	x0, LBB0_9
; %bb.4:
	mov	x23, x0
	ldr	w1, [x24]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	w0, [x19, #12]
	cbz	w0, LBB0_9
; %bb.5:
Lloh4:
	adrp	x8, _pxrc_free_urb@GOTPAGE
Lloh5:
	ldr	x8, [x8, _pxrc_free_urb@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x19
	bl	_devm_add_action_or_reset
	mov	x24, x0
	cbnz	w0, LBB0_10
; %bb.6:
	ldr	w24, [x19, #12]
	ldr	x8, [sp, #8]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_usb_rcvintpipe
	mov	x2, x0
Lloh7:
	adrp	x8, _pxrc_usb_irq@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pxrc_usb_irq@GOTPAGEOFF]
Lloh9:
	ldr	w5, [x8]
	mov	x0, x24
	mov	x1, x20
	mov	x3, x23
	mov	x4, x22
	mov	x6, x19
	mov	w7, #1
	bl	_usb_fill_int_urb
	mov	x0, x21
	bl	_devm_input_allocate_device
	str	x0, [x19]
	cbz	x0, LBB0_8
; %bb.7:
Lloh10:
	adrp	x8, l_.str.2@PAGE
Lloh11:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x0]
	ldr	w1, [x19, #8]
	mov	x0, x20
	mov	w2, #4
	bl	_usb_make_path
	ldr	w0, [x19, #8]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #4
	bl	_strlcat
	ldr	w8, [x19, #8]
	ldr	x9, [x19]
	str	w8, [x9, #20]
	add	x1, x9, #16
	mov	x0, x20
	bl	_usb_to_input_id
Lloh14:
	adrp	x8, _pxrc_open@GOTPAGE
Lloh15:
	ldr	x8, [x8, _pxrc_open@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	x0, [x19]
Lloh17:
	adrp	x9, _pxrc_close@GOTPAGE
Lloh18:
	ldr	x9, [x9, _pxrc_close@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
Lloh20:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _BTN_A@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BTN_A@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	bl	_input_set_capability
	ldr	x0, [x19]
Lloh26:
	adrp	x8, _ABS_X@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x0, [x19]
Lloh29:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x0, [x19]
Lloh32:
	adrp	x8, _ABS_RX@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ABS_RX@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x0, [x19]
Lloh35:
	adrp	x8, _ABS_RY@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ABS_RY@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x0, [x19]
Lloh38:
	adrp	x8, _ABS_RUDDER@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ABS_RUDDER@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x0, [x19]
Lloh41:
	adrp	x8, _ABS_THROTTLE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ABS_THROTTLE@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x0, [x19]
Lloh44:
	adrp	x8, _ABS_MISC@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ABS_MISC@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x0, [x19]
	mov	x1, x19
	bl	_input_set_drvdata
	ldr	x0, [x19]
	bl	_input_register_device
	mov	x24, x0
	b	LBB0_10
LBB0_8:
Lloh47:
	adrp	x1, l_.str.1@PAGE
Lloh48:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
LBB0_9:
Lloh49:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_10:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not find endpoint\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pxrc_free_urb,4,2              ; @pxrc_free_urb
	.comm	_pxrc_usb_irq,4,2               ; @pxrc_usb_irq
l_.str.1:                               ; @.str.1
	.asciz	"couldn't allocate input device\n"

l_.str.2:                               ; @.str.2
	.asciz	"PXRC Flight Controller Adapter"

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

	.comm	_pxrc_open,4,2                  ; @pxrc_open
	.comm	_pxrc_close,4,2                 ; @pxrc_close
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_BTN_A,4,2                      ; @BTN_A
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_RX,4,2                     ; @ABS_RX
	.comm	_ABS_RY,4,2                     ; @ABS_RY
	.comm	_ABS_RUDDER,4,2                 ; @ABS_RUDDER
	.comm	_ABS_THROTTLE,4,2               ; @ABS_THROTTLE
	.comm	_ABS_MISC,4,2                   ; @ABS_MISC
	.no_dead_strip	_pxrc_probe
.subsections_via_symbols
