	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function new_id_store
_new_id_store:                          ## @new_id_store
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_to_hid_driver
	movq	%rax, %r15
	movq	$0, -40(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	leaq	-40(%rbp), %r9
	movq	%rbx, %rdi
	callq	_sscanf
	cmpl	$2, %eax
	jg	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	-64(%rbp), %rax
	movq	%rax, 40(%rbx)
	movq	_HID_GROUP_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	-56(%rbp), %rax
	movq	%rax, 24(%rbx)
	movq	-48(%rbp), %rax
	movq	%rax, 16(%rbx)
	movq	-40(%rbp), %rax
	movq	%rax, 8(%rbx)
	leaq	4(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movq	%r15, %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r12, %rdi
	callq	_spin_unlock
	movq	%r15, %rdi
	callq	_driver_attach
	testl	%eax, %eax
	cltq
	cmoveq	%r14, %rax
	jmp	LBB0_6
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%x %x %x %lx"

	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_HID_GROUP_ANY,4,2              ## @HID_GROUP_ANY
	.no_dead_strip	_new_id_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function new_id_store
_new_id_store:                          ; @new_id_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x21, x1
	bl	_to_hid_driver
	mov	x20, x0
	str	xzr, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	add	x3, sp, #16
	add	x4, sp, #8
	mov	x5, sp
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #2
	b.gt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	x8, [sp, #24]
	str	x8, [x0, #40]
Lloh7:
	adrp	x8, _HID_GROUP_ANY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HID_GROUP_ANY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	ldr	x10, [sp, #16]
	ldp	x9, x8, [sp]
	stp	x8, x10, [x0, #16]
	str	x9, [x0, #8]
	add	x22, x20, #4
	mov	x0, x22
	bl	_spin_lock
	add	x1, x20, #8
	mov	x0, x21
	bl	_list_add_tail
	mov	x0, x22
	bl	_spin_unlock
	mov	x0, x20
	bl	_driver_attach
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	w0, #0
	csel	x0, x19, x8, eq
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%x %x %x %lx"

	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_HID_GROUP_ANY,4,2              ; @HID_GROUP_ANY
	.no_dead_strip	_new_id_store
.subsections_via_symbols
