	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxamci_set_power
_pxamci_set_power:                      ## @pxamci_set_power
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 16(%rdi)
	jne	LBB0_7
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	16(%rax), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movl	16(%rax), %edi
	xorl	%esi, %esi
	btl	%r14d, %ecx
	setb	%sil
	xorl	4(%rax), %esi
	callq	_gpio_set_value
LBB0_4:
	cmpq	$0, 16(%rbx)
	je	LBB0_5
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%rbx), %edi
	movq	%rax, %rbx
	callq	_mmc_dev
	movl	%eax, %edi
	movl	%r14d, %esi
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pxamci_set_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxamci_set_power
_pxamci_set_power:                      ; @pxamci_set_power
	.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
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w0, [x8, #16]
	bl	_gpio_is_valid
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #16]
	ldp	w9, w8, [x8]
	lsr	w9, w9, w19
	and	w9, w9, #0x1
	eor	w1, w9, w8
	bl	_gpio_set_value
LBB0_4:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.7:
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_5
; %bb.8:
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w0, [x20]
	bl	_mmc_dev
	mov	x1, x19
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	br	x2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pxamci_set_power
.subsections_via_symbols
