	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dell_wmi_input_setup
_dell_wmi_input_setup:                  ## @dell_wmi_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rax)
	movq	_BUS_HOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	%rbx, 8(%rax)
	movq	_handle_dmi_entry@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	callq	_dmi_walk
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_warn
LBB0_4:
	movl	-64(%rbp), %r12d
	testl	%r12d, %r12d
	je	LBB0_5
LBB0_27:
	movq	(%r14), %rdi
	callq	_input_free_device
	movl	%r12d, %r15d
	jmp	LBB0_28
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_28:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	-60(%rbp), %r14d
	movq	_dell_wmi_keymap_type_0000@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %ebx
	movq	_dell_wmi_keymap_type_0010@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r15d
	movq	_dell_wmi_keymap_type_0011@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
                                        ## kill: def $eax killed $eax def $rax
	addl	%r14d, %ebx
	addl	%r15d, %ebx
	leal	(%rax,%rbx), %edi
	incl	%edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %r13
	cmpl	$0, -60(%rbp)
	jle	LBB0_7
## %bb.9:
	xorl	%r15d, %r15d
	movq	_dell_wmi_keymap_type_0011@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movq	(%rax,%r15,8), %rax
	movq	%rax, (%r13,%r15,8)
	orl	$1048576, %eax                  ## imm = 0x100000
	movl	%eax, (%r13,%r15,8)
	incq	%r15
	movslq	-60(%rbp), %rax
	cmpq	%rax, %r15
	jl	LBB0_10
	jmp	LBB0_11
LBB0_8:
	movq	-56(%rbp), %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_27
LBB0_7:
	xorl	%r15d, %r15d
	movq	_dell_wmi_keymap_type_0011@GOTPCREL(%rip), %r14
LBB0_11:
	movq	-56(%rbp), %rdi
	callq	_kfree
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_17
## %bb.12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movslq	%r15d, %r15
	movq	(%r14,%rbx,8), %rax
	movq	%rax, (%r13,%r15,8)
	orl	$1048576, %eax                  ## imm = 0x100000
	movl	%eax, (%r13,%r15,8)
	incl	%r15d
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	_dell_wmi_keymap_type_0011@GOTPCREL(%rip), %r14
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_17
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r14
	movl	-60(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r14,%rbx,8), %edi
	movl	$1048576, %eax                  ## imm = 0x100000
	orl	%eax, %edi
	movq	%r13, %rsi
	callq	_have_scancode
	testq	%rax, %rax
	jne	LBB0_16
	jmp	LBB0_15
LBB0_17:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_21
## %bb.18:
	movslq	%r15d, %rax
	leaq	(,%rax,8), %r12
	addq	%r13, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%rax, (%r12,%rbx,8)
	orl	$1114112, %eax                  ## imm = 0x110000
	movl	%eax, (%r12,%rbx,8)
	incq	%rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_19
## %bb.20:
	addl	%ebx, %r15d
LBB0_21:
	movq	_dell_wmi_keymap_type_0000@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_25
## %bb.22:
	movslq	%r15d, %rax
	leaq	(,%rax,8), %r14
	addq	%r13, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%rax, (%r14,%rbx,8)
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_23
## %bb.24:
	addl	%ebx, %r15d
LBB0_25:
	movq	_KE_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movslq	%r15d, %rcx
	movl	%eax, 4(%r13,%rcx,8)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rdi
	xorl	%r15d, %r15d
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_sparse_keymap_setup
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_kfree
	testl	%r12d, %r12d
	jne	LBB0_27
## %bb.26:
	movq	(%r14), %rdi
	callq	_input_register_device
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_27
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Dell WMI hotkeys"

	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_handle_dmi_entry,4,2           ## @handle_dmi_entry
L_.str.1:                               ## @.str.1
	.asciz	"no DMI; using the old-style hotkey interface\n"

	.comm	_dell_wmi_keymap_type_0000,8,3  ## @dell_wmi_keymap_type_0000
	.comm	_dell_wmi_keymap_type_0010,8,3  ## @dell_wmi_keymap_type_0010
	.comm	_dell_wmi_keymap_type_0011,8,3  ## @dell_wmi_keymap_type_0011
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_KE_END,4,2                     ## @KE_END
	.no_dead_strip	_dell_wmi_input_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dell_wmi_input_setup
_dell_wmi_input_setup:                  ; @dell_wmi_input_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	bl	_dev_get_drvdata
	mov	x19, x0
	stp	xzr, xzr, [sp]
	bl	_input_allocate_device
	str	x0, [x19]
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
Lloh2:
	adrp	x9, _BUS_HOST@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BUS_HOST@GOTPAGEOFF]
	stp	x8, x20, [x0]
Lloh4:
	ldr	w8, [x9]
	str	w8, [x0, #16]
Lloh5:
	adrp	x8, _handle_dmi_entry@GOTPAGE
Lloh6:
	ldr	x8, [x8, _handle_dmi_entry@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, sp
	bl	_dmi_walk
	cbz	x0, LBB0_3
; %bb.2:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
LBB0_3:
	ldr	w21, [sp]
	cbz	w21, LBB0_7
LBB0_4:
	ldr	x0, [x19]
	bl	_input_free_device
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	ldr	w25, [sp, #4]
Lloh13:
	adrp	x22, _dell_wmi_keymap_type_0000@GOTPAGE
Lloh14:
	ldr	x22, [x22, _dell_wmi_keymap_type_0000@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	mov	x20, x0
Lloh15:
	adrp	x24, _dell_wmi_keymap_type_0010@GOTPAGE
Lloh16:
	ldr	x24, [x24, _dell_wmi_keymap_type_0010@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	mov	x21, x0
Lloh17:
	adrp	x23, _dell_wmi_keymap_type_0011@GOTPAGE
Lloh18:
	ldr	x23, [x23, _dell_wmi_keymap_type_0011@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	add	w8, w25, w20
	add	w8, w8, w21
	add	w8, w8, w0
	add	w0, w8, #1
Lloh19:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_12
; %bb.8:
	mov	x20, x0
	ldr	w8, [sp, #4]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x21, #0
	mov	x8, x20
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [sp, #8]
	ldr	x9, [x9, x21, lsl #3]
	str	x9, [x8]
	orr	w9, w9, #0x100000
	str	w9, [x8], #8
	add	x21, x21, #1
	ldrsw	x9, [sp, #4]
	cmp	x21, x9
	b.lt	LBB0_10
; %bb.11:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_14
LBB0_12:
	ldr	x0, [sp, #8]
	bl	_kfree
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_4
LBB0_13:
	mov	w21, #0
LBB0_14:
	ldr	x0, [sp, #8]
	bl	_kfree
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_20
; %bb.15:
	mov	x25, #0
	mov	x26, #0
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	sbfiz	x8, x21, #3, #32
	ldr	x9, [x27, x25]
	str	x9, [x20, x8]
	orr	w9, w9, #0x100000
	str	w9, [x20, x8]
	add	w21, w21, #1
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x26, x26, #1
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	add	x25, x25, #8
	cmp	x26, w0, sxtw
	b.ge	LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x24]
	ldr	w2, [sp, #4]
	cbz	w2, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [x27, x25]
	orr	w0, w8, #0x100000
	mov	x1, x20
	bl	_have_scancode
	cbnz	x0, LBB0_17
	b	LBB0_16
LBB0_20:
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_24
; %bb.21:
	mov	x24, #0
	add	x25, x20, w21, sxtw #3
	mov	w26, #1114112
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8, x24, lsl #3]
	str	x8, [x25]
	orr	w8, w8, w26
	str	w8, [x25], #8
	add	x24, x24, #1
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.lt	LBB0_22
; %bb.23:
	add	w21, w21, w24
LBB0_24:
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_28
; %bb.25:
	mov	x23, #0
	add	x24, x20, w21, sxtw #3
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	lsl	x9, x23, #3
	ldr	x8, [x8, x9]
	str	x8, [x24, x9]
	add	x23, x23, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_26
; %bb.27:
	add	w21, w21, w23
LBB0_28:
Lloh25:
	adrp	x8, _KE_END@GOTPAGE
Lloh26:
	ldr	x8, [x8, _KE_END@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	add	x9, x20, w21, sxtw #3
	str	w8, [x9, #4]
	ldr	x0, [x19]
	mov	x1, x20
	mov	x2, #0
	bl	_sparse_keymap_setup
	mov	x21, x0
	mov	x0, x20
	bl	_kfree
	cbnz	w21, LBB0_4
; %bb.29:
	ldr	x0, [x19]
	bl	_input_register_device
	mov	x21, x0
	cbnz	w0, LBB0_4
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Dell WMI hotkeys"

	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_handle_dmi_entry,4,2           ; @handle_dmi_entry
l_.str.1:                               ; @.str.1
	.asciz	"no DMI; using the old-style hotkey interface\n"

	.comm	_dell_wmi_keymap_type_0000,8,3  ; @dell_wmi_keymap_type_0000
	.comm	_dell_wmi_keymap_type_0010,8,3  ; @dell_wmi_keymap_type_0010
	.comm	_dell_wmi_keymap_type_0011,8,3  ; @dell_wmi_keymap_type_0011
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_KE_END,4,2                     ; @KE_END
	.no_dead_strip	_dell_wmi_input_setup
.subsections_via_symbols
