	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_mmc_notify_cover_event    ## -- Begin function omap_mmc_notify_cover_event
	.p2align	4, 0x90
_omap_mmc_notify_cover_event:           ## @omap_mmc_notify_cover_event
	.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
	movl	%esi, %r14d
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movslq	%r14d, %r15
	movq	(%rax,%r15,8), %r14
	xorl	%edi, %edi
	cmpl	%r15d, (%rbx)
	setle	%dil
	callq	_BUG_ON
	cmpl	$0, (%rbx)
	je	LBB0_5
## %bb.1:
	movq	8(%rbx), %rax
	cmpq	$0, (%rax,%r15,8)
	je	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	_mmc_omap_cover_is_open
	cmpl	(%r14), %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, (%r14)
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	callq	_sysfs_notify
LBB0_4:
	addq	$4, %r14
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tasklet_hi_schedule            ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cover_switch"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_mmc_notify_cover_event    ; -- Begin function omap_mmc_notify_cover_event
	.p2align	2
_omap_mmc_notify_cover_event:           ; @omap_mmc_notify_cover_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	bl	_dev_get_drvdata
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8, w20, sxtw #3]
	ldr	w8, [x0]
	cmp	w8, w20
	cset	w0, le
	bl	_BUG_ON
	ldr	w8, [x21]
	cbz	w8, LBB0_5
; %bb.1:
	sxtw	x8, w20
	ldr	x9, [x21, #8]
	ldr	x8, [x9, x8, lsl #3]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_mmc_omap_cover_is_open
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.3:
	str	w0, [x19]
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, #0
	bl	_sysfs_notify
LBB0_4:
	add	x0, x19, #4
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tasklet_hi_schedule
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cover_switch"

.subsections_via_symbols
