	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vub300_enable_sdio_irq
_vub300_enable_sdio_irq:                ## @vub300_enable_sdio_irq
	.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, %r15d
	callq	_mmc_priv
	cmpl	$0, 40(%rax)
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_kref_get
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.2:
	movq	%rbx, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	decq	%rax
	movq	%rax, 32(%rbx)
	movl	24(%rbx), %edi
	callq	_mmc_signal_sdio_irq
	jmp	LBB0_8
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	$0, (%rbx)
	jmp	LBB0_10
LBB0_4:
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.5:
	movq	$0, 16(%rbx)
	jmp	LBB0_7
LBB0_6:
	cmpl	$0, (%rbx)
	jne	LBB0_8
LBB0_7:
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_vub300_queue_poll_work
LBB0_8:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_10:
	movq	_vub300_delete@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kref_put                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vub300_delete,4,2              ## @vub300_delete
	.no_dead_strip	_vub300_enable_sdio_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vub300_enable_sdio_irq
_vub300_enable_sdio_irq:                ; @vub300_enable_sdio_irq
	.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	x21, x1
	bl	_mmc_priv
	ldr	w8, [x0, #40]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_kref_get
	cbz	w21, LBB0_5
; %bb.2:
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_6
; %bb.3:
	sub	x8, x8, #1
	str	x8, [x20, #32]
	ldr	w0, [x20, #24]
	bl	_mmc_signal_sdio_irq
	b	LBB0_10
LBB0_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
	ret
LBB0_5:
	str	wzr, [x20]
	b	LBB0_11
LBB0_6:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_8
; %bb.7:
	str	xzr, [x20, #16]
	b	LBB0_9
LBB0_8:
	ldr	w8, [x20]
	cbnz	w8, LBB0_10
LBB0_9:
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x20
	mov	w1, #0
	bl	_vub300_queue_poll_work
LBB0_10:
	mov	x0, x21
	bl	_mutex_unlock
LBB0_11:
Lloh0:
	adrp	x8, _vub300_delete@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vub300_delete@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	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	_kref_put
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_vub300_delete,4,2              ; @vub300_delete
	.no_dead_strip	_vub300_enable_sdio_irq
.subsections_via_symbols
