	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hp_wireless_input_setup
_hp_wireless_input_setup:               ## @hp_wireless_input_setup
	.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
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	_hpwl_input_dev@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rax)
	movq	(%r15), %rax
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_BUS_HOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	(%r15), %rcx
	movq	24(%rcx), %rdx
	movl	%eax, (%rdx)
	movq	_KEY_RFKILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rcx), %esi
	callq	_set_bit
	movq	(%r15), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	callq	_input_free_device
	movl	%ebx, %r14d
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hpwl_input_dev,8,3             ## @hpwl_input_dev
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HP Wireless hotkeys"

L_.str.1:                               ## @.str.1
	.asciz	"hpq6001/input0"

	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_RFKILL,4,2                 ## @KEY_RFKILL
	.no_dead_strip	_hp_wireless_input_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hp_wireless_input_setup
_hp_wireless_input_setup:               ; @hp_wireless_input_setup
	.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
	bl	_input_allocate_device
Lloh0:
	adrp	x20, _hpwl_input_dev@GOTPAGE
Lloh1:
	ldr	x20, [x20, _hpwl_input_dev@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
	ldr	x8, [x20]
Lloh4:
	adrp	x9, l_.str.1@PAGE
Lloh5:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh6:
	adrp	x10, _BUS_HOST@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BUS_HOST@GOTPAGEOFF]
	str	x9, [x8, #8]
Lloh8:
	ldr	w9, [x10]
	str	w9, [x8, #32]
Lloh9:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_BIT
	ldr	x8, [x20]
	ldr	x9, [x8, #24]
	str	w0, [x9]
Lloh12:
	adrp	x9, _KEY_RFKILL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _KEY_RFKILL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	ldr	w1, [x8, #16]
	bl	_set_bit
	ldr	x0, [x20]
	bl	_input_register_device
	mov	x19, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x0, [x20]
	bl	_input_free_device
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_hpwl_input_dev,8,3             ; @hpwl_input_dev
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HP Wireless hotkeys"

l_.str.1:                               ; @.str.1
	.asciz	"hpq6001/input0"

	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_RFKILL,4,2                 ; @KEY_RFKILL
	.no_dead_strip	_hp_wireless_input_setup
.subsections_via_symbols
