	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_set_sdio_pm_caps
_ath6kl_set_sdio_pm_caps:               ## @ath6kl_set_sdio_pm_caps
	.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
	callq	_ath6kl_sdio_priv
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_sdio_get_host_pm_caps
	movl	%eax, %ebx
	movq	_ATH6KL_DBG_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_ath6kl_dbg
	movq	_MMC_PM_WAKE_SDIO_IRQ@GOTPCREL(%rip), %r15
	testl	%ebx, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_MMC_PM_KEEP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%ebx, %esi
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_sdio_set_host_pm_flags
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_sdio_set_host_pm_flags
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
LBB0_8:
	movl	%ebx, %esi
	callq	_ath6kl_err
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH6KL_DBG_SUSPEND,4,2         ## @ATH6KL_DBG_SUSPEND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sdio suspend pm_caps 0x%x\n"

	.comm	_MMC_PM_WAKE_SDIO_IRQ,4,2       ## @MMC_PM_WAKE_SDIO_IRQ
	.comm	_MMC_PM_KEEP_POWER,4,2          ## @MMC_PM_KEEP_POWER
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"set sdio keep pwr flag failed: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"set sdio wake irq flag failed: %d\n"

	.no_dead_strip	_ath6kl_set_sdio_pm_caps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_set_sdio_pm_caps
_ath6kl_set_sdio_pm_caps:               ; @ath6kl_set_sdio_pm_caps
	.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
	bl	_ath6kl_sdio_priv
	ldr	x19, [x0]
	mov	x0, x19
	bl	_sdio_get_host_pm_caps
	mov	x20, x0
Lloh0:
	adrp	x8, _ATH6KL_DBG_SUSPEND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH6KL_DBG_SUSPEND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_ath6kl_dbg
Lloh5:
	adrp	x21, _MMC_PM_WAKE_SDIO_IRQ@GOTPAGE
Lloh6:
	ldr	x21, [x21, _MMC_PM_WAKE_SDIO_IRQ@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.1:
Lloh7:
	adrp	x8, _MMC_PM_KEEP_POWER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MMC_PM_KEEP_POWER@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	tst	w1, w20
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_sdio_set_host_pm_flags
	cbz	w0, LBB0_5
; %bb.3:
	mov	x20, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_5:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_sdio_set_host_pm_flags
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.6:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	mov	x1, x20
	bl	_ath6kl_err
LBB0_8:
	mov	x0, x20
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH6KL_DBG_SUSPEND,4,2         ; @ATH6KL_DBG_SUSPEND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sdio suspend pm_caps 0x%x\n"

	.comm	_MMC_PM_WAKE_SDIO_IRQ,4,2       ; @MMC_PM_WAKE_SDIO_IRQ
	.comm	_MMC_PM_KEEP_POWER,4,2          ; @MMC_PM_KEEP_POWER
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"set sdio keep pwr flag failed: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"set sdio wake irq flag failed: %d\n"

	.no_dead_strip	_ath6kl_set_sdio_pm_caps
.subsections_via_symbols
