	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcf8574_kp_probe
_pcf8574_kp_probe:                      ## @pcf8574_kp_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$240, %esi
	callq	_i2c_smbus_write_byte
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_input_allocate_device
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	%rax, 32(%r13)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, 24(%r13)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movq	48(%r15), %rcx
	movl	%eax, (%rcx)
	movq	(%r13), %rdi
	movq	%rdi, (%r15)
	movl	$8, 8(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 12(%r15)
	movq	_pcf8574_kp_btncode@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	movq	_KEY_MAX@GOTPCREL(%rip), %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rcx
	cmpq	(%r14), %rcx
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdi
	movq	%rdi, (%rax,%rbx,8)
	movl	40(%r15), %esi
	callq	___set_bit
	jmp	LBB0_10
LBB0_1:
	addq	$4, %rbx
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_17
LBB0_11:
	movq	_KEY_RESERVED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	40(%r15), %esi
	callq	___clear_bit
	movl	16(%r13), %edi
	movq	_DRV_NAME@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	callq	_sprintf
	movl	12(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_sprintf
	movl	16(%r13), %eax
	movl	%eax, 36(%r15)
	movl	12(%r13), %eax
	movl	%eax, 32(%r15)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 16(%r15)
	movl	$256, 24(%r15)                  ## imm = 0x100
	movq	%r13, %rdi
	callq	_read_state
	movl	%eax, 8(%r13)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movq	_pcf8574_kp_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	(%r14), %r8
	xorl	%esi, %esi
	movq	%r13, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r12d
	movl	(%rbx), %edx
	addq	$4, %rbx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_17
LBB0_5:
	addq	$4, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_16
LBB0_13:
	movq	%r15, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_18
## %bb.14:
	movl	%eax, %r12d
	leaq	4(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_free_irq
LBB0_15:
	movq	%r15, %rdi
	callq	_input_free_device
LBB0_16:
	movq	%r13, %rdi
	callq	_kfree
LBB0_17:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_i2c_set_clientdata
	xorl	%r12d, %r12d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"probe: write fail\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate input device\n"

	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_pcf8574_kp_btncode,8,3         ## @pcf8574_kp_btncode
	.comm	_KEY_MAX,8,3                    ## @KEY_MAX
	.comm	_KEY_RESERVED,4,2               ## @KEY_RESERVED
	.comm	_DRV_NAME,8,3                   ## @DRV_NAME
L_.str.2:                               ## @.str.2
	.asciz	"kp_data/input0"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_pcf8574_kp_irq_handler,4,2     ## @pcf8574_kp_irq_handler
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.3:                               ## @.str.3
	.asciz	"IRQ %d is not free\n"

L_.str.4:                               ## @.str.4
	.asciz	"input_register_device() failed\n"

	.no_dead_strip	_pcf8574_kp_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcf8574_kp_probe
_pcf8574_kp_probe:                      ; @pcf8574_kp_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	x20, x0
	mov	w1, #240
	bl	_i2c_smbus_write_byte
	tbnz	x0, #63, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.2:
	mov	x19, x0
	bl	_input_allocate_device
	cbz	x0, LBB0_13
; %bb.3:
	mov	x21, x0
	stp	x20, x0, [x19, #24]
Lloh3:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_BIT_MASK
	ldr	x8, [x21, #48]
	str	w0, [x8]
	ldr	x0, [x19]
	str	x0, [x21]
	mov	w8, #8
	str	w8, [x21, #8]
	bl	_ARRAY_SIZE
	str	w0, [x21, #12]
Lloh6:
	adrp	x22, _pcf8574_kp_btncode@GOTPAGE
Lloh7:
	ldr	x22, [x22, _pcf8574_kp_btncode@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x23, #0
Lloh8:
	adrp	x24, _KEY_MAX@GOTPAGE
Lloh9:
	ldr	x24, [x24, _KEY_MAX@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x8, x23, lsl #3]
	ldr	x10, [x24]
	cmp	x9, x10
	b.gt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x22]
	lsl	x10, x23, #3
	ldr	x0, [x9, x10]
	str	x0, [x8, x10]
	ldr	w1, [x21, #40]
	bl	___set_bit
	b	LBB0_5
LBB0_8:
	add	x0, x20, #4
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh14:
	adrp	x8, _KEY_RESERVED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KEY_RESERVED@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w1, [x21, #40]
	bl	___clear_bit
	ldr	w0, [x19, #16]
Lloh17:
	adrp	x22, _DRV_NAME@GOTPAGE
Lloh18:
	ldr	x22, [x22, _DRV_NAME@GOTPAGEOFF]
	ldr	x1, [x22]
	bl	_sprintf
	ldr	w0, [x19, #12]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sprintf
	ldur	d0, [x19, #12]
	str	d0, [x21, #32]
Lloh21:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	movi.2s	v0, #1
	str	d0, [x21, #16]
	mov	w9, #256
	stp	w9, w8, [x21, #24]
	mov	x0, x19
	bl	_read_state
	str	w0, [x19, #8]
	ldr	w0, [x20]
Lloh24:
	adrp	x8, _pcf8574_kp_irq_handler@GOTPAGE
Lloh25:
	ldr	x8, [x8, _pcf8574_kp_irq_handler@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x8, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w3, w9, w8
	ldr	x4, [x22]
	mov	x1, #0
	mov	x5, x19
	bl	_request_threaded_irq
	cbz	w0, LBB0_14
; %bb.10:
	mov	x22, x0
	ldr	w8, [x20], #4
	str	x8, [sp]
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_16
LBB0_11:
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_18
LBB0_13:
	add	x0, x20, #4
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh39:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_17
LBB0_14:
	mov	x0, x21
	bl	_input_register_device
	mov	x22, x0
	cbz	w0, LBB0_19
; %bb.15:
	add	x0, x20, #4
Lloh42:
	adrp	x1, l_.str.4@PAGE
Lloh43:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	ldr	w0, [x20]
	mov	x1, x19
	bl	_free_irq
LBB0_16:
	mov	x0, x21
	bl	_input_free_device
LBB0_17:
	mov	x0, x19
	bl	_kfree
LBB0_18:
	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_19:
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"probe: write fail\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate input device\n"

	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_pcf8574_kp_btncode,8,3         ; @pcf8574_kp_btncode
	.comm	_KEY_MAX,8,3                    ; @KEY_MAX
	.comm	_KEY_RESERVED,4,2               ; @KEY_RESERVED
	.comm	_DRV_NAME,8,3                   ; @DRV_NAME
l_.str.2:                               ; @.str.2
	.asciz	"kp_data/input0"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_pcf8574_kp_irq_handler,4,2     ; @pcf8574_kp_irq_handler
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.3:                               ; @.str.3
	.asciz	"IRQ %d is not free\n"

l_.str.4:                               ; @.str.4
	.asciz	"input_register_device() failed\n"

	.no_dead_strip	_pcf8574_kp_probe
.subsections_via_symbols
