	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_kp_enable_store
_omap_kp_enable_store:                  ## @omap_kp_enable_store
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.2:
	cmpl	$2, -36(%rbp)
	jae	LBB0_1
## %bb.3:
	movq	_kp_enable_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	-36(%rbp), %eax
	movq	_kp_enable@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	je	LBB0_8
## %bb.4:
	movl	(%r15), %edi
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	callq	_enable_irq
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_6:
	callq	_disable_irq
LBB0_7:
	movl	-36(%rbp), %eax
	movl	%eax, (%r12)
LBB0_8:
	movq	_kp_enable_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strnlen
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_kp_enable_mutex,4,2            ## @kp_enable_mutex
	.comm	_kp_enable,4,2                  ## @kp_enable
	.no_dead_strip	_omap_kp_enable_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_kp_enable_store
_omap_kp_enable_store:                  ; @omap_kp_enable_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
	bl	_dev_get_drvdata
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w8, #2
	b.hs	LBB0_5
; %bb.2:
Lloh2:
	adrp	x0, _kp_enable_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _kp_enable_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	w8, [sp, #12]
Lloh4:
	adrp	x22, _kp_enable@GOTPAGE
Lloh5:
	ldr	x22, [x22, _kp_enable@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.3:
	ldr	w0, [x21]
	cbz	w8, LBB0_6
; %bb.4:
	bl	_enable_irq
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_6:
	bl	_disable_irq
LBB0_7:
	ldr	w8, [sp, #12]
	str	w8, [x22]
LBB0_8:
Lloh9:
	adrp	x0, _kp_enable_mutex@GOTPAGE
Lloh10:
	ldr	x0, [x0, _kp_enable_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x20
	mov	x1, x19
	bl	_strnlen
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_kp_enable_mutex,4,2            ; @kp_enable_mutex
	.comm	_kp_enable,4,2                  ; @kp_enable
	.no_dead_strip	_omap_kp_enable_store
.subsections_via_symbols
