	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_init                       ## -- Begin function hid_init
	.p2align	4, 0x90
_hid_init:                              ## @hid_init
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ecx, %esi
	xorl	%eax, %eax
	callq	_RARCH_LOG
	testq	%r13, %r13
	je	LBB0_8
## %bb.1:
	testq	%r15, %r15
	je	LBB0_8
## %bb.2:
	testq	%r12, %r12
	je	LBB0_8
## %bb.3:
	movq	_MAX_USERS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jb	LBB0_8
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_RARCH_LOG
	xorl	%eax, %eax
	callq	*8(%r15)
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_init_pad_list
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r15, 8(%r13)
	movq	%r12, (%r13)
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_RARCH_LOG
	movl	$1, %r14d
	jmp	LBB0_8
LBB0_6:
	movq	16(%r13), %rdi
	callq	*(%r15)
	movq	$0, 16(%r13)
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[hid]: initializing instance with %d pad slots\n"

	.comm	_MAX_USERS,4,2                  ## @MAX_USERS
L_.str.1:                               ## @.str.1
	.asciz	"[hid]: initializing HID subsystem driver...\n"

L_.str.2:                               ## @.str.2
	.asciz	"[hid]: instance initialization complete.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_init                       ; -- Begin function hid_init
	.p2align	2
_hid_init:                              ; @hid_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	x22, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_LOG
	mov	w0, #0
	cbz	x19, LBB0_8
; %bb.1:
	cbz	x21, LBB0_8
; %bb.2:
	cbz	x20, LBB0_8
; %bb.3:
Lloh2:
	adrp	x8, _MAX_USERS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_USERS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w22
	b.lo	LBB0_8
; %bb.4:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_RARCH_LOG
	ldr	x8, [x21, #8]
	blr	x8
	str	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x19
	mov	x1, x22
	bl	_init_pad_list
	cbz	w0, LBB0_7
; %bb.6:
	stp	x20, x21, [x19]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_RARCH_LOG
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	ldr	x8, [x21]
	ldr	x0, [x19, #16]
	blr	x8
	mov	w0, #0
	str	xzr, [x19, #16]
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[hid]: initializing instance with %d pad slots\n"

	.comm	_MAX_USERS,4,2                  ; @MAX_USERS
l_.str.1:                               ; @.str.1
	.asciz	"[hid]: initializing HID subsystem driver...\n"

l_.str.2:                               ; @.str.2
	.asciz	"[hid]: instance initialization complete.\n"

.subsections_via_symbols
