	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_input_field
_hid_input_field:                       ## @hid_input_field
	.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
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %ebx
	movl	4(%rsi), %r14d
	movl	8(%rsi), %r12d
	movq	16(%rsi), %r15
	movq	24(%rsi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$8, %esi
	callq	_kmalloc_array
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_30
## %bb.1:
	movq	%rbx, %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_28
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	addl	%r12d, %r14d
	cmpq	%rbx, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%r12d, %ecx
	callq	_hid_field_extract
	testq	%r15, %r15
	jns	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_snto32
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rbx,8)
	movq	_HID_MAIN_ITEM_VARIABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 32(%r13)
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rcx
	subq	%r15, %rcx
	jl	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	jg	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	40(%r13), %rcx
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	56(%r13), %rax
	movq	_HID_UP_KEYBOARD@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	incq	%rdx
	cmpq	%rdx, (%rax,%rcx,8)
	jne	LBB0_10
	jmp	LBB0_29
LBB0_30:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,8), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	56(%r13), %rdx
	addq	%rbx, %rdx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx), %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
LBB0_26:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_hid_process_event
LBB0_27:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	$8, %rbx
	cmpq	%rbx, %r14
	je	LBB0_28
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	32(%r13), %eax
	movq	_HID_MAIN_ITEM_VARIABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	48(%r13), %rax
	movq	(%rax,%rbx), %rsi
	movq	%rsi, %rax
	subq	%r15, %rax
	jl	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	-80(%rbp), %rsi                 ## 8-byte Folded Reload
	jg	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	40(%r13), %rax
	jge	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	56(%r13), %rcx
	cmpq	$0, (%rcx,%rax,8)
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_search
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	48(%r13), %rax
	movq	(%rax,%rbx), %rdx
	subq	%r15, %rdx
	shlq	$3, %rdx
	addq	56(%r13), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_hid_process_event
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx), %rsi
	movq	%rsi, %rax
	subq	%r15, %rax
	jl	LBB0_27
## %bb.21:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	-80(%rbp), %rsi                 ## 8-byte Folded Reload
	jg	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	40(%r13), %rax
	jge	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	56(%r13), %rcx
	cmpq	$0, (%rcx,%rax,8)
	je	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	48(%r13), %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_search
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx), %rdx
	subq	%r15, %rdx
	shlq	$3, %rdx
	addq	56(%r13), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	$1, %ecx
	jmp	LBB0_26
LBB0_28:
	movq	48(%r13), %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	shll	$3, %edx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
LBB0_29:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_HID_MAIN_ITEM_VARIABLE,4,2     ## @HID_MAIN_ITEM_VARIABLE
	.comm	_HID_UP_KEYBOARD,8,3            ## @HID_UP_KEYBOARD
	.no_dead_strip	_hid_input_field
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hid_input_field
_hid_input_field:                       ; @hid_input_field
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x3
	mov	x24, x2
	mov	x19, x1
	mov	x22, x0
	ldp	w21, w25, [x1]
	ldr	w26, [x1, #8]
	ldp	x27, x28, [x1, #16]
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #8
	bl	_kmalloc_array
	cbz	x0, LBB0_9
; %bb.1:
	mov	x23, x0
	cbz	w21, LBB0_25
; %bb.2:
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	mov	x20, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	add	w25, w25, w26
	cmp	x21, x20
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	bl	_hid_field_extract
	tbz	x27, #63, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x26
	bl	_snto32
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x0, [x23, x20, lsl #3]
	ldr	w8, [x19, #32]
Lloh3:
	adrp	x9, _HID_MAIN_ITEM_VARIABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HID_MAIN_ITEM_VARIABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	x0, x27, #8, eq
	ccmp	x0, x28, #0, ge
	b.gt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #40]
	sub	x8, x0, x27
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #56]
	ldr	x8, [x9, x8, lsl #3]
Lloh6:
	adrp	x9, _HID_UP_KEYBOARD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HID_UP_KEYBOARD@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_3
	b	LBB0_26
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	mov	x24, #0
	lsl	x25, x21, #3
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #56]
	add	x2, x8, x24
	ldr	w3, [x23, x24]
	mov	x0, x22
	mov	x1, x19
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x4, x20
	bl	_hid_process_event
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x24, x24, #8
	cmp	x25, x24
	b.eq	LBB0_25
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
Lloh9:
	adrp	x8, _HID_MAIN_ITEM_VARIABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HID_MAIN_ITEM_VARIABLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #48]
	ldr	x1, [x8, x24]
	subs	x8, x1, x27
	ccmp	x1, x28, #0, ge
	b.gt	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x9, [x19, #40]
	cmp	x8, x9
	b.ge	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x9, [x19, #56]
	ldr	x8, [x9, x8, lsl #3]
	cbz	x8, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x23
	mov	x2, x21
	bl	_search
	cbz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	ldp	x9, x8, [x19, #48]
	ldr	x9, [x9, x24]
	sub	x9, x9, x27
	add	x2, x8, x9, lsl #3
	mov	x0, x22
	mov	x1, x19
	mov	w3, #0
	mov	x4, x20
	bl	_hid_process_event
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x1, [x23, x24]
	subs	x8, x1, x27
	ccmp	x1, x28, #0, ge
	b.gt	LBB0_13
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x9, [x19, #40]
	cmp	x8, x9
	b.ge	LBB0_13
; %bb.22:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x9, [x19, #56]
	ldr	x8, [x9, x8, lsl #3]
	cbz	x8, LBB0_13
; %bb.23:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [x19, #48]
	mov	x2, x21
	bl	_search
	cbz	x0, LBB0_13
; %bb.24:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #56]
	ldr	x9, [x23, x24]
	sub	x9, x9, x27
	add	x2, x8, x9, lsl #3
	mov	x0, x22
	mov	x1, x19
	mov	w3, #1
	b	LBB0_12
LBB0_25:
	ldr	x0, [x19, #48]
	lsl	w2, w21, #3
	mov	x1, x23
	bl	_memcpy
LBB0_26:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_HID_MAIN_ITEM_VARIABLE,4,2     ; @HID_MAIN_ITEM_VARIABLE
	.comm	_HID_UP_KEYBOARD,8,3            ; @HID_UP_KEYBOARD
	.no_dead_strip	_hid_input_field
.subsections_via_symbols
