	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function device_onkey_init
_device_onkey_init:                     ## @device_onkey_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_onkey_resources@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movq	_onkey_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%eax, 8(%rdx)
	movq	(%r12), %rax
	movq	%rax, (%rdx)
	movl	(%r15), %r14d
	movq	(%rcx), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	(%r12), %r8
	movl	4(%r15), %r9d
	movq	$0, (%rsp)
	movl	%r14d, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_mfd_add_devices
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_onkey_resources,8,3            ## @onkey_resources
	.comm	_onkey_devs,8,3                 ## @onkey_devs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to add onkey subdev\n"

	.no_dead_strip	_device_onkey_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function device_onkey_init
_device_onkey_init:                     ; @device_onkey_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
Lloh0:
	adrp	x22, _onkey_resources@GOTPAGE
Lloh1:
	ldr	x22, [x22, _onkey_resources@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
Lloh2:
	adrp	x8, _onkey_devs@GOTPAGE
Lloh3:
	ldr	x8, [x8, _onkey_devs@GOTPAGEOFF]
	ldr	x9, [x8]
	str	w0, [x9, #8]
	ldr	x10, [x22]
	str	x10, [x9]
	ldr	w20, [x19]
	ldr	x21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	ldr	x4, [x22]
	ldr	w5, [x19, #4]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	mov	x6, #0
	bl	_mfd_add_devices
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_onkey_resources,8,3            ; @onkey_resources
	.comm	_onkey_devs,8,3                 ; @onkey_devs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to add onkey subdev\n"

	.no_dead_strip	_device_onkey_init
.subsections_via_symbols
