	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fmvj18x_setup_mfc
_fmvj18x_setup_mfc:                     ## @fmvj18x_setup_mfc
	.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
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_WIN_DATA_WIDTH_8@GOTPCREL(%rip), %rax
	movq	_WIN_MEMORY_TYPE_AM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_WIN_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	(%rbx), %rax
	movq	24(%rax), %rsi
	movl	%ecx, (%rsi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsi)
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pcmcia_request_window
	movl	$-1, %r12d
	testl	%eax, %eax
	je	LBB0_1
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%rbx), %rax
	movq	24(%rax), %rdi
	movq	8(%rdi), %r13
	callq	_resource_size
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ioremap
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%rbx), %rax
	movq	24(%rax), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pcmcia_map_mem_page
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rdi
	callq	_iounmap
	movq	$0, (%r14)
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_notice
	jmp	LBB0_6
LBB0_5:
	movl	(%r15), %ebx
	movl	$8192, %esi                     ## imm = 0x2000
	addq	(%r14), %rsi
	movl	$71, %edi
	callq	_writeb
	movl	$8200, %esi                     ## imm = 0x2008
	addq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_writeb
	movzbl	%bl, %edi
	movl	$8232, %esi                     ## imm = 0x2028
	addq	(%r14), %rsi
	callq	_writeb
	movzbl	%bh, %edi
	movl	$8240, %esi                     ## imm = 0x2030
	addq	(%r14), %rsi
	callq	_writeb
	movl	$8320, %esi                     ## imm = 0x2080
	addq	(%r14), %rsi
	movl	$69, %edi
	callq	_writeb
	movl	$8328, %esi                     ## imm = 0x2088
	addq	(%r14), %rsi
	movl	$8, %edi
	callq	_writeb
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_WIN_DATA_WIDTH_8,4,2           ## @WIN_DATA_WIDTH_8
	.comm	_WIN_MEMORY_TYPE_AM,4,2         ## @WIN_MEMORY_TYPE_AM
	.comm	_WIN_ENABLE,4,2                 ## @WIN_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioremap failed\n"

	.no_dead_strip	_fmvj18x_setup_mfc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fmvj18x_setup_mfc
_fmvj18x_setup_mfc:                     ; @fmvj18x_setup_mfc
	.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
	mov	x21, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _WIN_DATA_WIDTH_8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WIN_DATA_WIDTH_8@GOTPAGEOFF]
Lloh2:
	adrp	x9, _WIN_MEMORY_TYPE_AM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WIN_MEMORY_TYPE_AM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _WIN_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WIN_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	x9, [x21]
	ldr	x1, [x9, #24]
	str	w8, [x1]
	stp	xzr, xzr, [x1, #8]
	mov	x0, x21
	mov	w2, #0
	bl	_pcmcia_request_window
	cbz	w0, LBB0_3
LBB0_1:
	mov	w0, #-1
LBB0_2:
	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
LBB0_3:
	ldr	x8, [x21]
	ldr	x0, [x8, #24]
	ldr	x22, [x0, #8]
	bl	_resource_size
	mov	x1, x0
	mov	x0, x22
	bl	_ioremap
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x21]
	ldr	x1, [x8, #24]
	mov	x0, x21
	mov	w2, #0
	bl	_pcmcia_map_mem_page
	cbz	w0, LBB0_7
; %bb.5:
	ldr	x0, [x19]
	bl	_iounmap
	str	xzr, [x19]
	b	LBB0_1
LBB0_6:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_notice
	b	LBB0_1
LBB0_7:
	ldr	w20, [x20]
	ldr	x8, [x19]
	add	x1, x8, #2, lsl #12             ; =8192
	mov	w0, #71
	bl	_writeb
	ldr	x8, [x19]
	mov	w9, #8200
	add	x1, x8, x9
	mov	w0, #0
	bl	_writeb
	and	w0, w20, #0xff
	ldr	x8, [x19]
	mov	w9, #8232
	add	x1, x8, x9
	bl	_writeb
	ubfx	w0, w20, #8, #8
	ldr	x8, [x19]
	mov	w9, #8240
	add	x1, x8, x9
	bl	_writeb
	ldr	x8, [x19]
	mov	w9, #8320
	add	x1, x8, x9
	mov	w0, #69
	bl	_writeb
	ldr	x8, [x19]
	mov	w9, #8328
	add	x1, x8, x9
	mov	w0, #8
	bl	_writeb
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WIN_DATA_WIDTH_8,4,2           ; @WIN_DATA_WIDTH_8
	.comm	_WIN_MEMORY_TYPE_AM,4,2         ; @WIN_MEMORY_TYPE_AM
	.comm	_WIN_ENABLE,4,2                 ; @WIN_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioremap failed\n"

	.no_dead_strip	_fmvj18x_setup_mfc
.subsections_via_symbols
