	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udraw_probe
_udraw_probe:                           ## @udraw_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, 24(%rax)
	movq	$-1, (%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_hid_set_drvdata
	movq	%r14, %rdi
	callq	_hid_parse
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_17:
	movq	%r14, %rdi
	callq	_hid_err
	jmp	LBB0_18
LBB0_4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_udraw_setup_joypad
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_udraw_setup_touch
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_udraw_setup_pen
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_udraw_setup_accel
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	20(%r15), %edi
	callq	_input_register_device
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	movl	16(%r15), %edi
	callq	_input_register_device
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movl	12(%r15), %edi
	callq	_input_register_device
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movl	8(%r15), %edi
	callq	_input_register_device
	testq	%rax, %rax
	je	LBB0_14
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_hid_err
	movl	$1, %ebx
	jmp	LBB0_18
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_hid_err
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_HID_CONNECT_HIDRAW@GOTPCREL(%rip), %rax
	movq	_HID_CONNECT_DRIVER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hid_hw_start
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_17
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parse failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"could not allocate interfaces\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to register interfaces\n"

	.comm	_HID_CONNECT_HIDRAW,4,2         ## @HID_CONNECT_HIDRAW
	.comm	_HID_CONNECT_DRIVER,4,2         ## @HID_CONNECT_DRIVER
L_.str.3:                               ## @.str.3
	.asciz	"hw start failed\n"

	.no_dead_strip	_udraw_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udraw_probe
_udraw_probe:                           ; @udraw_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #24]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x0]
	mov	x0, x19
	mov	x1, x20
	bl	_hid_set_drvdata
	mov	x0, x19
	bl	_hid_parse
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_hid_err
	b	LBB0_15
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_udraw_setup_joypad
	cbz	w0, LBB0_13
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_udraw_setup_touch
	cbz	w0, LBB0_13
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_udraw_setup_pen
	cbz	w0, LBB0_13
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	bl	_udraw_setup_accel
	cbz	w0, LBB0_13
; %bb.8:
	ldr	w0, [x20, #20]
	bl	_input_register_device
	cbnz	x0, LBB0_12
; %bb.9:
	ldr	w0, [x20, #16]
	bl	_input_register_device
	cbnz	x0, LBB0_12
; %bb.10:
	ldr	w0, [x20, #12]
	bl	_input_register_device
	cbnz	x0, LBB0_12
; %bb.11:
	ldr	w0, [x20, #8]
	bl	_input_register_device
	cbz	x0, LBB0_16
LBB0_12:
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_hid_err
	mov	w21, #1
	b	LBB0_15
LBB0_13:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_hid_err
LBB0_14:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh12:
	adrp	x8, _HID_CONNECT_HIDRAW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HID_CONNECT_HIDRAW@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _HID_CONNECT_DRIVER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HID_CONNECT_DRIVER@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_hid_hw_start
	mov	x21, x0
	cbz	w0, LBB0_15
; %bb.17:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parse failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"could not allocate interfaces\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to register interfaces\n"

	.comm	_HID_CONNECT_HIDRAW,4,2         ; @HID_CONNECT_HIDRAW
	.comm	_HID_CONNECT_DRIVER,4,2         ; @HID_CONNECT_DRIVER
l_.str.3:                               ; @.str.3
	.asciz	"hw start failed\n"

	.no_dead_strip	_udraw_probe
.subsections_via_symbols
