	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lubbock_pcmcia_configure_socket
_lubbock_pcmcia_configure_socket:       ## @lubbock_pcmcia_configure_socket
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$1, (%rdi)
	ja	LBB0_7
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_sa1111_pcmcia_configure_socket
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movl	4(%r13), %edx
	movq	%r15, %rdi
	callq	_max1600_configure
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	cmpl	$33, (%r13)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$3, %edi
	callq	_mdelay
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_sa1111_pcmcia_socket_state
	movl	-44(%rbp), %eax
	orl	-48(%rbp), %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_max1600_configure
	movl	$100, %edi
	callq	_mdelay
	movabsq	$214748364850, %rax             ## imm = 0x3200000032
	movq	%rax, (%r13)
	cmpl	$2, (%r14)
	jb	LBB0_2
LBB0_7:
	movl	$-1, %ebx
	jmp	LBB0_8
LBB0_10:
	movl	%eax, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lubbock_pcmcia_configure_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lubbock_pcmcia_configure_socket
_lubbock_pcmcia_configure_socket:       ; @lubbock_pcmcia_configure_socket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	ldr	w8, [x0]
	cmp	w8, #1
	b.hi	LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	movi.2s	v8, #50
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_sa1111_pcmcia_configure_socket
	cbnz	w0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w1, w2, [x19]
	mov	x0, x21
	bl	_max1600_configure
	cbnz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19]
	cmp	w8, #33
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #3
	bl	_mdelay
	add	x1, sp, #8
	mov	x0, x20
	bl	_sa1111_pcmcia_socket_state
	ldp	w9, w8, [sp, #8]
	orr	w8, w8, w9
	cbnz	w8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_max1600_configure
	mov	w0, #100
	bl	_mdelay
	str	d8, [x19]
	ldr	w8, [x20]
	cmp	w8, #2
	b.lo	LBB0_2
LBB0_7:
	mov	w0, #-1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lubbock_pcmcia_configure_socket
.subsections_via_symbols
