	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dir685_tk_probe
_dir685_tk_probe:                       ## @dir685_tk_probe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	4(%rdi), %r15
	movabsq	$274877907111, %rax             ## imm = 0x40000000A7
	movq	%rax, -48(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_devm_input_allocate_device
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%r14, 24(%r13)
	movq	%r15, (%r13)
	movl	$4, (%rax)
	movq	16(%r13), %rdi
	callq	_ARRAY_SIZE
	movq	8(%r13), %rcx
	movl	%eax, 4(%rcx)
	movq	16(%r13), %rax
	movq	%rax, 32(%rcx)
	movq	_KEY_UP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rax)
	movq	_KEY_DOWN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 4(%rax)
	movq	_KEY_LEFT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 8(%rax)
	movq	_KEY_RIGHT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 12(%rax)
	movq	_KEY_ENTER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 16(%rax)
	movq	_KEY_WPS_BUTTON@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 20(%rax)
	movq	_KEY_RESERVED@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	%edx, 24(%rax)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rcx), %esi
	callq	___set_bit
	movq	16(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	movl	(%rcx,%rbx,4), %edi
	movl	20(%rax), %esi
	callq	___set_bit
	incq	%rbx
	movq	16(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movl	(%r12), %edi
	movq	8(%r13), %rax
	movl	20(%rax), %esi
	callq	___clear_bit
	movq	8(%r13), %rdi
	leaq	L_.str(%rip), %rax
	movq	%rax, 8(%rdi)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	callq	_input_register_device
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_i2c_master_send
	cmpl	$8, %eax
	je	LBB0_10
## %bb.9:
	movq	(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
LBB0_10:
	movl	(%r14), %esi
	testl	%esi, %esi
	je	LBB0_11
## %bb.12:
	movq	_dir685_tk_irq_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, (%rsp)
	leaq	L_.str.3(%rip), %r9
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movl	%ebx, %r12d
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_KEY_UP,4,2                     ## @KEY_UP
	.comm	_KEY_DOWN,4,2                   ## @KEY_DOWN
	.comm	_KEY_LEFT,4,2                   ## @KEY_LEFT
	.comm	_KEY_RIGHT,4,2                  ## @KEY_RIGHT
	.comm	_KEY_ENTER,4,2                  ## @KEY_ENTER
	.comm	_KEY_WPS_BUTTON,4,2             ## @KEY_WPS_BUTTON
	.comm	_KEY_RESERVED,4,2               ## @KEY_RESERVED
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"D-Link DIR-685 touchkeys"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
L_.str.1:                               ## @.str.1
	.asciz	"error setting brightness level\n"

L_.str.2:                               ## @.str.2
	.asciz	"no IRQ on the I2C device\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_dir685_tk_irq_thread,4,2       ## @dir685_tk_irq_thread
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.3:                               ## @.str.3
	.asciz	"dir685-tk"

L_.str.4:                               ## @.str.4
	.asciz	"can't request IRQ\n"

	.no_dead_strip	_dir685_tk_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dir685_tk_probe
_dir685_tk_probe:                       ; @dir685_tk_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x0
	add	x19, x0, #4
	mov	x8, #167
	movk	x8, #64, lsl #32
	str	x8, [sp, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_devm_input_allocate_device
	str	x0, [x20, #8]
	cbz	x0, LBB0_11
; %bb.2:
	str	x21, [x20, #24]
	str	x19, [x20]
	mov	w8, #4
	str	w8, [x0]
	ldr	x0, [x20, #16]
	bl	_ARRAY_SIZE
	ldp	x8, x9, [x20, #8]
	str	w0, [x8, #4]
	str	x9, [x8, #32]
Lloh3:
	adrp	x10, _KEY_UP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _KEY_UP@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	str	w10, [x9]
Lloh6:
	adrp	x10, _KEY_DOWN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _KEY_DOWN@GOTPAGEOFF]
Lloh8:
	adrp	x11, _KEY_LEFT@GOTPAGE
Lloh9:
	ldr	x11, [x11, _KEY_LEFT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	ldr	w11, [x11]
	stp	w10, w11, [x9, #4]
Lloh12:
	adrp	x10, _KEY_RIGHT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _KEY_RIGHT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _KEY_ENTER@GOTPAGE
Lloh16:
	ldr	x11, [x11, _KEY_ENTER@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	stp	w10, w11, [x9, #12]
Lloh18:
	adrp	x10, _KEY_WPS_BUTTON@GOTPAGE
Lloh19:
	ldr	x10, [x10, _KEY_WPS_BUTTON@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	adrp	x22, _KEY_RESERVED@GOTPAGE
Lloh22:
	ldr	x22, [x22, _KEY_RESERVED@GOTPAGEOFF]
	ldr	w11, [x22]
	stp	w10, w11, [x9, #20]
Lloh23:
	adrp	x9, _EV_KEY@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EV_KEY@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x9]
	ldr	w1, [x8, #24]
	bl	___set_bit
	ldr	x0, [x20, #16]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x23, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x20, #8]
	ldr	w0, [x8, x23, lsl #2]
	ldr	w1, [x9, #20]
	bl	___set_bit
	add	x23, x23, #1
	ldr	x0, [x20, #16]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_4
LBB0_5:
	ldr	w0, [x22]
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #20]
	bl	___clear_bit
Lloh26:
	adrp	x8, l_.str@PAGE
Lloh27:
	add	x8, x8, l_.str@PAGEOFF
	ldr	x0, [x20, #8]
	str	x8, [x0, #8]
Lloh28:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	bl	_input_register_device
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.6:
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #8
	bl	_i2c_master_send
	cmp	w0, #8
	b.eq	LBB0_8
; %bb.7:
	ldr	x0, [x20]
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
LBB0_8:
	ldr	w1, [x21]
	cbz	w1, LBB0_14
; %bb.9:
Lloh33:
	adrp	x8, _dir685_tk_irq_thread@GOTPAGE
Lloh34:
	ldr	x8, [x8, _dir685_tk_irq_thread@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
Lloh36:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh38:
	ldr	w4, [x8]
Lloh39:
	adrp	x5, l_.str.3@PAGE
Lloh40:
	add	x5, x5, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	mov	x22, x0
	cbz	w0, LBB0_13
; %bb.10:
Lloh41:
	adrp	x1, l_.str.4@PAGE
Lloh42:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_13
LBB0_11:
Lloh43:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
Lloh45:
	adrp	x1, l_.str.2@PAGE
Lloh46:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh47:
	adrp	x8, _ENODEV@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_KEY_UP,4,2                     ; @KEY_UP
	.comm	_KEY_DOWN,4,2                   ; @KEY_DOWN
	.comm	_KEY_LEFT,4,2                   ; @KEY_LEFT
	.comm	_KEY_RIGHT,4,2                  ; @KEY_RIGHT
	.comm	_KEY_ENTER,4,2                  ; @KEY_ENTER
	.comm	_KEY_WPS_BUTTON,4,2             ; @KEY_WPS_BUTTON
	.comm	_KEY_RESERVED,4,2               ; @KEY_RESERVED
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"D-Link DIR-685 touchkeys"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
l_.str.1:                               ; @.str.1
	.asciz	"error setting brightness level\n"

l_.str.2:                               ; @.str.2
	.asciz	"no IRQ on the I2C device\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_dir685_tk_irq_thread,4,2       ; @dir685_tk_irq_thread
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.3:                               ; @.str.3
	.asciz	"dir685-tk"

l_.str.4:                               ; @.str.4
	.asciz	"can't request IRQ\n"

	.no_dead_strip	_dir685_tk_probe
.subsections_via_symbols
