	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_gpio_set_cd_wake           ## -- Begin function mmc_gpio_set_cd_wake
	.p2align	4, 0x90
_mmc_gpio_set_cd_wake:                  ## @mmc_gpio_set_cd_wake
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_MMC_CAP_CD_WAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	js	LBB0_7
## %bb.2:
	cmpl	%esi, 16(%rbx)
	je	LBB0_7
## %bb.3:
	testl	%esi, %esi
	je	LBB0_5
## %bb.4:
	callq	_enable_irq_wake
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	jmp	LBB0_6
LBB0_5:
	callq	_disable_irq_wake
	xorl	%ecx, %ecx
	xorl	%eax, %eax
LBB0_6:
	movl	%ecx, 16(%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_CAP_CD_WAKE,4,2            ## @MMC_CAP_CD_WAKE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_gpio_set_cd_wake           ; -- Begin function mmc_gpio_set_cd_wake
	.p2align	2
_mmc_gpio_set_cd_wake:                  ; @mmc_gpio_set_cd_wake
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MMC_CAP_CD_WAKE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_CAP_CD_WAKE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #8]
	tbnz	x0, #63, LBB0_3
; %bb.2:
	ldr	w8, [x19, #16]
	cmp	w8, w1
	b.ne	LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	cbz	w1, LBB0_7
; %bb.6:
	bl	_enable_irq_wake
	cmp	w0, #0
	cset	w8, eq
	b	LBB0_8
LBB0_7:
	bl	_disable_irq_wake
	mov	w8, #0
	mov	w0, #0
LBB0_8:
	str	w8, [x19, #16]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_CAP_CD_WAKE,4,2            ; @MMC_CAP_CD_WAKE
.subsections_via_symbols
