	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sa1100_pcmcia_set_mecr
_sa1100_pcmcia_set_mecr:                ## @sa1100_pcmcia_set_mecr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	-56(%rbp), %rsi
	callq	_soc_common_pcmcia_get_timing
	movq	8(%rbx), %rax
	movl	-48(%rbp), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*(%rax)
	movl	%eax, %r12d
	movq	8(%rbx), %rax
	movl	-52(%rbp), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*(%rax)
	movl	%eax, %r15d
	movq	8(%rbx), %rax
	movl	-56(%rbp), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*(%rax)
	movl	%eax, %r13d
	callq	_local_irq_save
	movq	_MECR@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_MECR_FAST_SET
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_MECR_BSIO_SET
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_MECR_BSA_SET
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_MECR_BSM_SET
	callq	_local_irq_restore
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_MECR_FAST_GET
	movl	%eax, %r15d
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_MECR_BSM_GET
	movl	%eax, %r12d
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_MECR_BSA_GET
	movl	%eax, %r13d
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_MECR_BSIO_GET
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_debug
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MECR,8,3                       ## @MECR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FAST %X  BSM %X  BSA %X  BSIO %X\n"

	.no_dead_strip	_sa1100_pcmcia_set_mecr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sa1100_pcmcia_set_mecr
_sa1100_pcmcia_set_mecr:                ; @sa1100_pcmcia_set_mecr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	mov	x1, sp
	bl	_soc_common_pcmcia_get_timing
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w2, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w2, [sp, #4]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w2, [sp]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x20, x0
	bl	_local_irq_save
Lloh0:
	adrp	x8, _MECR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MECR@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	ldr	w1, [x19]
	mov	x0, x23
	mov	w2, #0
	bl	_MECR_FAST_SET
	ldr	w1, [x19]
	mov	x0, x23
	mov	x2, x21
	bl	_MECR_BSIO_SET
	ldr	w1, [x19]
	mov	x0, x23
	mov	x2, x20
	bl	_MECR_BSA_SET
	ldr	w1, [x19]
	mov	x0, x23
	mov	x2, x22
	bl	_MECR_BSM_SET
	bl	_local_irq_restore
	ldr	w1, [x19]
	mov	x0, x23
	bl	_MECR_FAST_GET
	mov	x20, x0
	ldr	w1, [x19]
	mov	x0, x23
	bl	_MECR_BSM_GET
	mov	x21, x0
	ldr	w1, [x19]
	mov	x0, x23
	bl	_MECR_BSA_GET
	mov	x22, x0
	ldr	w1, [x19]
	mov	x0, x23
	bl	_MECR_BSIO_GET
	mov	x6, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #2
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	bl	_debug
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MECR,8,3                       ; @MECR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FAST %X  BSM %X  BSA %X  BSIO %X\n"

	.no_dead_strip	_sa1100_pcmcia_set_mecr
.subsections_via_symbols
