	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apple_probe
_apple_probe:                           ## @apple_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %r12
	movq	_HID_CONNECT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r12, (%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.1(%rip), %rsi
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	movq	_APPLE_HIDDEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	movq	(%rax), %rcx
	movl	$0, %eax
	andq	%r12, %rcx
	je	LBB0_6
## %bb.5:
	movq	_HID_CONNECT_HIDDEV_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	orl	%r13d, %eax
	movq	_APPLE_IGNORE_HIDINPUT@GOTPCREL(%rip), %rcx
	andq	(%rcx), %r12
	movq	_HID_CONNECT_HIDINPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	cmpq	$1, %r12
	movl	$0, %esi
	sbbl	%esi, %esi
	orl	%ecx, %esi
	andl	%eax, %esi
	movq	%r14, %rdi
	callq	_hid_hw_start
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_kfree
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_CONNECT_DEFAULT,4,2        ## @HID_CONNECT_DEFAULT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't alloc apple descriptor\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"parse failed\n"

	.comm	_APPLE_HIDDEV,8,3               ## @APPLE_HIDDEV
	.comm	_HID_CONNECT_HIDDEV_FORCE,4,2   ## @HID_CONNECT_HIDDEV_FORCE
	.comm	_APPLE_IGNORE_HIDINPUT,8,3      ## @APPLE_IGNORE_HIDINPUT
	.comm	_HID_CONNECT_HIDINPUT,4,2       ## @HID_CONNECT_HIDINPUT
L_.str.2:                               ## @.str.2
	.asciz	"hw start failed\n"

	.no_dead_strip	_apple_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apple_probe
_apple_probe:                           ; @apple_probe
	.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	x19, x0
	ldr	x22, [x1]
Lloh0:
	adrp	x8, _HID_CONNECT_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_CONNECT_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x22, [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
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_4:
Lloh13:
	adrp	x8, _APPLE_HIDDEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _APPLE_HIDDEV@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _HID_CONNECT_HIDDEV_FORCE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _HID_CONNECT_HIDDEV_FORCE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	x8, x22
	csel	w8, wzr, w9, eq
	orr	w8, w8, w23
Lloh19:
	adrp	x9, _APPLE_IGNORE_HIDINPUT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _APPLE_IGNORE_HIDINPUT@GOTPAGEOFF]
Lloh21:
	adrp	x10, _HID_CONNECT_HIDINPUT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _HID_CONNECT_HIDINPUT@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
Lloh24:
	ldr	w10, [x10]
	tst	x9, x22
	mov	w9, #-1
	csinv	w9, w9, w10, eq
	and	w1, w9, w8
	mov	x0, x19
	bl	_hid_hw_start
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.5:
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_kfree
LBB0_7:
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_CONNECT_DEFAULT,4,2        ; @HID_CONNECT_DEFAULT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't alloc apple descriptor\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"parse failed\n"

	.comm	_APPLE_HIDDEV,8,3               ; @APPLE_HIDDEV
	.comm	_HID_CONNECT_HIDDEV_FORCE,4,2   ; @HID_CONNECT_HIDDEV_FORCE
	.comm	_APPLE_IGNORE_HIDINPUT,8,3      ; @APPLE_IGNORE_HIDINPUT
	.comm	_HID_CONNECT_HIDINPUT,4,2       ; @HID_CONNECT_HIDINPUT
l_.str.2:                               ; @.str.2
	.asciz	"hw start failed\n"

	.no_dead_strip	_apple_probe
.subsections_via_symbols
