	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_wmi_input_init
_asus_wmi_input_init:                   ## @asus_wmi_input_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rcx
	movl	8(%rcx), %edx
	movl	%edx, 24(%rax)
	movl	4(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_BUS_HOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	16(%rbx), %rcx
	movq	%rcx, 8(%rax)
	movq	_EV_REP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_set_bit
	movq	(%rbx), %rdi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_sparse_keymap_setup
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	(%rbx), %rdi
	callq	_input_register_device
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	movq	(%rbx), %rdi
	callq	_input_free_device
	movl	%r15d, %r14d
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_EV_REP,4,2                     ## @EV_REP
	.no_dead_strip	_asus_wmi_input_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_wmi_input_init
_asus_wmi_input_init:                   ; @asus_wmi_input_init
	.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
	mov	x19, x0
	bl	_input_allocate_device
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.1:
	ldp	x8, x9, [x19, #8]
	ldur	d0, [x8, #4]
	stur	d0, [x0, #20]
Lloh0:
	adrp	x8, _BUS_HOST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUS_HOST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	str	x9, [x0, #8]
Lloh3:
	adrp	x8, _EV_REP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EV_REP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w1, [x0]
	mov	x0, x8
	bl	_set_bit
	ldp	x0, x8, [x19]
	ldr	w1, [x8]
	mov	x2, #0
	bl	_sparse_keymap_setup
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x0, [x19]
	bl	_input_register_device
	mov	x20, x0
	cbz	w0, LBB0_5
LBB0_3:
	ldr	x0, [x19]
	bl	_input_free_device
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_EV_REP,4,2                     ; @EV_REP
	.no_dead_strip	_asus_wmi_input_init
.subsections_via_symbols
