	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mst_pcmcia_hw_init
_mst_pcmcia_hw_init:                    ## @mst_pcmcia_hw_init
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	cmpq	$0, 8(%rdi)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	24(%rdi), %rax
	movq	_SOC_STAT_CD@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rcx, (%rax,%rdx,8)
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rcx, %rdx
	movq	_SOC_STAT_BVD1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rdx, (%rax,%rcx,8)
	leaq	L_.str.5(%rip), %rcx
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rcx, %rdx
	leaq	L_.str.7(%rip), %rcx
	leaq	L_.str.6(%rip), %rsi
	cmoveq	%rcx, %rsi
	movq	_SOC_STAT_BVD2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rdx, (%rax,%rcx,8)
	movq	_SOC_STAT_RDY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rsi, (%rax,%rcx,8)
	leaq	L_.str.9(%rip), %rcx
	leaq	L_.str.8(%rip), %rdx
	cmoveq	%rcx, %rdx
	movq	_SOC_STAT_VS1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rdx, (%rax,%rcx,8)
	leaq	L_.str.11(%rip), %rcx
	leaq	L_.str.10(%rip), %rdx
	cmoveq	%rcx, %rdx
	movq	_SOC_STAT_VS2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rdx, (%rax,%rcx,8)
	leaq	L_.str.13(%rip), %rax
	leaq	L_.str.12(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movl	%eax, 16(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movl	16(%rbx), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	cmpq	$0, 8(%rbx)
	jne	LBB0_2
## %bb.3:
	movq	_MAX1600_CHAN_A@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_MAX1600_CHAN_B@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edx
	movq	_MAX1600_CODE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdi
	callq	_max1600_init
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	-24(%rbp), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_soc_pcmcia_request_gpiods
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bdetect"

L_.str.1:                               ## @.str.1
	.asciz	"adetect"

	.comm	_SOC_STAT_CD,8,3                ## @SOC_STAT_CD
L_.str.2:                               ## @.str.2
	.asciz	"bbvd1"

L_.str.3:                               ## @.str.3
	.asciz	"abvd1"

	.comm	_SOC_STAT_BVD1,8,3              ## @SOC_STAT_BVD1
L_.str.4:                               ## @.str.4
	.asciz	"bbvd2"

L_.str.5:                               ## @.str.5
	.asciz	"abvd2"

	.comm	_SOC_STAT_BVD2,8,3              ## @SOC_STAT_BVD2
L_.str.6:                               ## @.str.6
	.asciz	"bready"

L_.str.7:                               ## @.str.7
	.asciz	"aready"

	.comm	_SOC_STAT_RDY,8,3               ## @SOC_STAT_RDY
L_.str.8:                               ## @.str.8
	.asciz	"bvs1"

L_.str.9:                               ## @.str.9
	.asciz	"avs1"

	.comm	_SOC_STAT_VS1,8,3               ## @SOC_STAT_VS1
L_.str.10:                              ## @.str.10
	.asciz	"bvs2"

L_.str.11:                              ## @.str.11
	.asciz	"avs2"

	.comm	_SOC_STAT_VS2,8,3               ## @SOC_STAT_VS2
L_.str.12:                              ## @.str.12
	.asciz	"breset"

L_.str.13:                              ## @.str.13
	.asciz	"areset"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
	.comm	_MAX1600_CHAN_B,4,2             ## @MAX1600_CHAN_B
	.comm	_MAX1600_CHAN_A,4,2             ## @MAX1600_CHAN_A
	.comm	_MAX1600_CODE_HIGH,4,2          ## @MAX1600_CODE_HIGH
	.no_dead_strip	_mst_pcmcia_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mst_pcmcia_hw_init
_mst_pcmcia_hw_init:                    ; @mst_pcmcia_hw_init
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, l_.str@PAGE
Lloh1:
	add	x9, x9, l_.str@PAGEOFF
Lloh2:
	adrp	x10, l_.str.1@PAGE
Lloh3:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldp	x9, x20, [x0, #24]
Lloh4:
	adrp	x10, _SOC_STAT_CD@GOTPAGE
Lloh5:
	ldr	x10, [x10, _SOC_STAT_CD@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	str	x8, [x9, x10, lsl #3]
Lloh7:
	adrp	x8, l_.str.2@PAGE
Lloh8:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh9:
	adrp	x10, l_.str.3@PAGE
Lloh10:
	add	x10, x10, l_.str.3@PAGEOFF
	csel	x8, x10, x8, eq
Lloh11:
	adrp	x10, _SOC_STAT_BVD1@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SOC_STAT_BVD1@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	str	x8, [x9, x10, lsl #3]
Lloh14:
	adrp	x8, l_.str.4@PAGE
Lloh15:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh16:
	adrp	x10, l_.str.5@PAGE
Lloh17:
	add	x10, x10, l_.str.5@PAGEOFF
Lloh18:
	adrp	x11, _SOC_STAT_BVD2@GOTPAGE
Lloh19:
	ldr	x11, [x11, _SOC_STAT_BVD2@GOTPAGEOFF]
	csel	x8, x10, x8, eq
Lloh20:
	ldr	x10, [x11]
	str	x8, [x9, x10, lsl #3]
Lloh21:
	adrp	x8, l_.str.6@PAGE
Lloh22:
	add	x8, x8, l_.str.6@PAGEOFF
Lloh23:
	adrp	x10, l_.str.7@PAGE
Lloh24:
	add	x10, x10, l_.str.7@PAGEOFF
	csel	x8, x10, x8, eq
Lloh25:
	adrp	x10, _SOC_STAT_RDY@GOTPAGE
Lloh26:
	ldr	x10, [x10, _SOC_STAT_RDY@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	str	x8, [x9, x10, lsl #3]
Lloh28:
	adrp	x8, l_.str.8@PAGE
Lloh29:
	add	x8, x8, l_.str.8@PAGEOFF
Lloh30:
	adrp	x10, l_.str.9@PAGE
Lloh31:
	add	x10, x10, l_.str.9@PAGEOFF
	csel	x8, x10, x8, eq
Lloh32:
	adrp	x10, _SOC_STAT_VS1@GOTPAGE
Lloh33:
	ldr	x10, [x10, _SOC_STAT_VS1@GOTPAGEOFF]
Lloh34:
	ldr	x10, [x10]
	str	x8, [x9, x10, lsl #3]
Lloh35:
	adrp	x8, l_.str.10@PAGE
Lloh36:
	add	x8, x8, l_.str.10@PAGEOFF
Lloh37:
	adrp	x10, _SOC_STAT_VS2@GOTPAGE
Lloh38:
	ldr	x10, [x10, _SOC_STAT_VS2@GOTPAGEOFF]
Lloh39:
	adrp	x11, l_.str.11@PAGE
Lloh40:
	add	x11, x11, l_.str.11@PAGEOFF
	csel	x8, x11, x8, eq
Lloh41:
	ldr	x10, [x10]
	str	x8, [x9, x10, lsl #3]
Lloh42:
	adrp	x8, l_.str.12@PAGE
Lloh43:
	add	x8, x8, l_.str.12@PAGEOFF
Lloh44:
	adrp	x9, _GPIOD_OUT_HIGH@GOTPAGE
Lloh45:
	ldr	x9, [x9, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh46:
	adrp	x10, l_.str.13@PAGE
Lloh47:
	add	x10, x10, l_.str.13@PAGEOFF
Lloh48:
	ldr	w2, [x9]
	csel	x1, x10, x8, eq
	mov	x0, x20
	bl	_devm_gpiod_get
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_PTR_ERR
LBB0_2:
	ldr	x8, [x19, #8]
Lloh49:
	adrp	x9, _MAX1600_CHAN_B@GOTPAGE
Lloh50:
	ldr	x9, [x9, _MAX1600_CHAN_B@GOTPAGEOFF]
Lloh51:
	adrp	x10, _MAX1600_CHAN_A@GOTPAGE
Lloh52:
	ldr	x10, [x10, _MAX1600_CHAN_A@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w2, [x8]
Lloh53:
	adrp	x8, _MAX1600_CODE_HIGH@GOTPAGE
Lloh54:
	ldr	x8, [x8, _MAX1600_CODE_HIGH@GOTPAGEOFF]
Lloh55:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_max1600_init
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	mov	x0, x19
	bl	_soc_pcmcia_request_gpiods
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh48
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh41
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bdetect"

l_.str.1:                               ; @.str.1
	.asciz	"adetect"

	.comm	_SOC_STAT_CD,8,3                ; @SOC_STAT_CD
l_.str.2:                               ; @.str.2
	.asciz	"bbvd1"

l_.str.3:                               ; @.str.3
	.asciz	"abvd1"

	.comm	_SOC_STAT_BVD1,8,3              ; @SOC_STAT_BVD1
l_.str.4:                               ; @.str.4
	.asciz	"bbvd2"

l_.str.5:                               ; @.str.5
	.asciz	"abvd2"

	.comm	_SOC_STAT_BVD2,8,3              ; @SOC_STAT_BVD2
l_.str.6:                               ; @.str.6
	.asciz	"bready"

l_.str.7:                               ; @.str.7
	.asciz	"aready"

	.comm	_SOC_STAT_RDY,8,3               ; @SOC_STAT_RDY
l_.str.8:                               ; @.str.8
	.asciz	"bvs1"

l_.str.9:                               ; @.str.9
	.asciz	"avs1"

	.comm	_SOC_STAT_VS1,8,3               ; @SOC_STAT_VS1
l_.str.10:                              ; @.str.10
	.asciz	"bvs2"

l_.str.11:                              ; @.str.11
	.asciz	"avs2"

	.comm	_SOC_STAT_VS2,8,3               ; @SOC_STAT_VS2
l_.str.12:                              ; @.str.12
	.asciz	"breset"

l_.str.13:                              ; @.str.13
	.asciz	"areset"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
	.comm	_MAX1600_CHAN_B,4,2             ; @MAX1600_CHAN_B
	.comm	_MAX1600_CHAN_A,4,2             ; @MAX1600_CHAN_A
	.comm	_MAX1600_CODE_HIGH,4,2          ; @MAX1600_CODE_HIGH
	.no_dead_strip	_mst_pcmcia_hw_init
.subsections_via_symbols
