	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_register_field
_hid_register_field:                    ## @hid_register_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	(%rdi), %rax
	movq	_HID_MAX_FIELDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_dbg_hid
	jmp	LBB0_4
LBB0_2:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	addl	%esi, %edx
	leal	32(,%rdx,4), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%r14d, %ecx
	movq	(%rbx), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, (%rbx)
	movq	%rdx, (%rax)
	movq	8(%rbx), %rsi
	movq	%rax, (%rsi,%rdx,8)
	leaq	32(%rax), %rdx
	movq	%rdx, 16(%rax)
	leaq	(%rax,%rcx,4), %rcx
	addq	$32, %rcx
	movq	%rcx, 24(%rax)
	movq	%rbx, 8(%rax)
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_MAX_FIELDS,8,3             ## @HID_MAX_FIELDS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many fields in report\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_hid_register_field
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hid_register_field
_hid_register_field:                    ; @hid_register_field
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _HID_MAX_FIELDS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HID_MAX_FIELDS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_hid
	mov	x0, #0
	b	LBB0_4
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	add	w8, w2, w1
	lsl	w8, w8, #2
	add	w0, w8, #32
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.3:
	ldp	x8, x9, [x19]
	add	x10, x8, #1
	str	x10, [x19]
	str	x0, [x9, x8, lsl #3]
	add	x9, x0, #32
	add	x10, x9, w20, uxtw #2
	stp	x9, x10, [x0, #16]
	stp	x8, x19, [x0]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_MAX_FIELDS,8,3             ; @HID_MAX_FIELDS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many fields in report\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_hid_register_field
.subsections_via_symbols
