	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdio_release_irq               ## -- Begin function sdio_release_irq
	.p2align	4, 0x90
_sdio_release_irq:                      ## @sdio_release_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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	callq	_sdio_func_id
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	$0, 8(%rbx)
	movl	4(%rbx), %edi
	callq	_sdio_card_irq_put
	movl	4(%rbx), %edi
	callq	_sdio_single_irq_set
LBB0_4:
	movl	4(%rbx), %edi
	movq	_SDIO_CCCR_IENx@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	xorl	%r15d, %r15d
	leaq	-25(%rbp), %r9
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_mmc_io_rw_direct
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movb	(%rbx), %cl
	movl	$1, %eax
	shll	%cl, %eax
	notb	%al
	andb	-25(%rbp), %al
	cmpb	$2, %al
	movzbl	%al, %eax
	cmovbl	%r15d, %eax
	movb	%al, -25(%rbp)
	movl	4(%rbx), %edi
	movl	(%r14), %ecx
	movzbl	%al, %r8d
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_mmc_io_rw_direct
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SDIO: Disabling IRQ for %s...\n"

	.comm	_SDIO_CCCR_IENx,4,2             ## @SDIO_CCCR_IENx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdio_release_irq               ; -- Begin function sdio_release_irq
	.p2align	2
_sdio_release_irq:                      ; @sdio_release_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_sdio_func_id
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	str	xzr, [x19, #8]
	ldr	w0, [x19, #4]
	bl	_sdio_card_irq_put
	ldr	w0, [x19, #4]
	bl	_sdio_single_irq_set
LBB0_3:
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x20, _SDIO_CCCR_IENx@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SDIO_CCCR_IENx@GOTPAGEOFF]
	ldr	w3, [x20]
	add	x5, sp, #15
	mov	w1, #0
	mov	w2, #0
	mov	w4, #0
	bl	_mmc_io_rw_direct
	cbnz	w0, LBB0_6
; %bb.4:
	mov	w8, #1
	ldp	w9, w0, [x19]
	lsl	w8, w8, w9
	ldrb	w9, [sp, #15]
	bic	w8, w9, w8
	and	w9, w8, #0xff
	cmp	w9, #2
	csel	w8, wzr, w8, lo
	strb	w8, [sp, #15]
	ldr	w3, [x20]
	and	w4, w8, #0xff
	mov	w1, #1
	mov	w2, #0
	mov	x5, #0
	bl	_mmc_io_rw_direct
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SDIO: Disabling IRQ for %s...\n"

	.comm	_SDIO_CCCR_IENx,4,2             ; @SDIO_CCCR_IENx
.subsections_via_symbols
