	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mhz_mfc_config
_mhz_mfc_config:                        ## @mhz_mfc_config
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	_CONF_ENABLE_SPKR@GOTPCREL(%rip), %rcx
	movq	_CONF_ENABLE_IRQ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_CONF_AUTO_SET_IO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	orl	%edx, (%r12)
	movq	%rax, %r15
	movq	_mhz_mfc_config_check@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_pcmcia_loop_config
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	8(%r12), %rax
	movq	(%rax), %rcx
	movq	8(%rcx), %rcx
	movq	%rcx, (%rbx)
	movq	_WIN_DATA_WIDTH_8@GOTPCREL(%rip), %rcx
	movq	_WIN_MEMORY_TYPE_AM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_WIN_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	16(%rax), %rsi
	movl	%edx, (%rsi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsi)
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_pcmcia_request_window
	testl	%eax, %eax
	je	LBB0_3
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	8(%r12), %rax
	movq	16(%rax), %rdi
	movq	8(%rdi), %rbx
	callq	_resource_size
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ioremap
	movl	%eax, 16(%r15)
	movq	(%r15), %rax
	movq	_MANFID_MOTOROLA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	4(%r12), %r14d
LBB0_5:
	movq	8(%r12), %rax
	movq	16(%rax), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_pcmcia_map_mem_page
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	(%r15), %rax
	movq	_MANFID_MEGAHERTZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	movq	8(%r15), %rax
	movq	_PRODID_MEGAHERTZ_EM3288@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_mhz_3288_power
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_CONF_ENABLE_SPKR,4,2           ## @CONF_ENABLE_SPKR
	.comm	_CONF_ENABLE_IRQ,4,2            ## @CONF_ENABLE_IRQ
	.comm	_CONF_AUTO_SET_IO,4,2           ## @CONF_AUTO_SET_IO
	.comm	_mhz_mfc_config_check,4,2       ## @mhz_mfc_config_check
	.comm	_ENODEV,4,2                     ## @ENODEV
	.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
	.comm	_MANFID_MOTOROLA,8,3            ## @MANFID_MOTOROLA
	.comm	_MANFID_MEGAHERTZ,8,3           ## @MANFID_MEGAHERTZ
	.comm	_PRODID_MEGAHERTZ_EM3288,8,3    ## @PRODID_MEGAHERTZ_EM3288
	.no_dead_strip	_mhz_mfc_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mhz_mfc_config
_mhz_mfc_config:                        ; @mhz_mfc_config
	.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	x19, x0
	ldr	x21, [x0, #16]
	mov	x0, x21
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _CONF_ENABLE_SPKR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONF_ENABLE_SPKR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CONF_ENABLE_IRQ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CONF_ENABLE_IRQ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _CONF_AUTO_SET_IO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CONF_AUTO_SET_IO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh9:
	adrp	x8, _mhz_mfc_config_check@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mhz_mfc_config_check@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_pcmcia_loop_config
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	ldr	x9, [x9, #8]
	str	x9, [x21]
Lloh12:
	adrp	x9, _WIN_DATA_WIDTH_8@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WIN_DATA_WIDTH_8@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _WIN_MEMORY_TYPE_AM@GOTPAGE
Lloh16:
	ldr	x10, [x10, _WIN_MEMORY_TYPE_AM@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh18:
	adrp	x10, _WIN_ENABLE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _WIN_ENABLE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w9, w10
	ldr	x1, [x8, #16]
	str	w9, [x1]
	stp	xzr, xzr, [x1, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_pcmcia_request_window
	cbz	w0, LBB0_4
LBB0_2:
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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_4:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #16]
	ldr	x21, [x0, #8]
	bl	_resource_size
	mov	x1, x0
	mov	x0, x21
	bl	_ioremap
	str	w0, [x20, #16]
	ldr	x8, [x20]
Lloh24:
	adrp	x9, _MANFID_MOTOROLA@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MANFID_MOTOROLA@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	w2, [x19, #4]
	b	LBB0_7
LBB0_6:
	mov	w2, #0
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x1, [x8, #16]
	mov	x0, x19
	bl	_pcmcia_map_mem_page
	cbnz	w0, LBB0_11
; %bb.8:
	ldr	x8, [x20]
Lloh27:
	adrp	x9, _MANFID_MEGAHERTZ@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MANFID_MEGAHERTZ@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	ldr	x8, [x20, #8]
Lloh30:
	adrp	x9, _PRODID_MEGAHERTZ_EM3288@GOTPAGE
Lloh31:
	ldr	x9, [x9, _PRODID_MEGAHERTZ_EM3288@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_mhz_3288_power
LBB0_11:
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_CONF_ENABLE_SPKR,4,2           ; @CONF_ENABLE_SPKR
	.comm	_CONF_ENABLE_IRQ,4,2            ; @CONF_ENABLE_IRQ
	.comm	_CONF_AUTO_SET_IO,4,2           ; @CONF_AUTO_SET_IO
	.comm	_mhz_mfc_config_check,4,2       ; @mhz_mfc_config_check
	.comm	_ENODEV,4,2                     ; @ENODEV
	.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
	.comm	_MANFID_MOTOROLA,8,3            ; @MANFID_MOTOROLA
	.comm	_MANFID_MEGAHERTZ,8,3           ; @MANFID_MEGAHERTZ
	.comm	_PRODID_MEGAHERTZ_EM3288,8,3    ; @PRODID_MEGAHERTZ_EM3288
	.no_dead_strip	_mhz_mfc_config
.subsections_via_symbols
