	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jornada720_pcmcia_hw_init
_jornada720_pcmcia_hw_init:             ## @jornada720_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	%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, %r14
	movq	16(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	cmpq	$0, 8(%r14)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_devm_gpiod_get
	movq	(%rbx), %rcx
	movq	_J720_GPIO_PWR@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%rbx), %rax
	movq	(%rax,%rdx,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rbx), %rax
	movq	(%r13), %rcx
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_5:
	cmpq	$0, 8(%r14)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_devm_gpiod_get
	movq	(%rbx), %rcx
	movq	_J720_GPIO_3V@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%rbx), %rax
	movq	(%rax,%rdx,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	movq	(%r15), %rcx
LBB0_4:
	movq	(%rax,%rcx,8), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	movq	%rbx, (%r14)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"s1-power"

L_.str.1:                               ## @.str.1
	.asciz	"s0-power"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.comm	_J720_GPIO_PWR,8,3              ## @J720_GPIO_PWR
L_.str.2:                               ## @.str.2
	.asciz	"s1-3v"

L_.str.3:                               ## @.str.3
	.asciz	"s0-3v"

	.comm	_J720_GPIO_3V,8,3               ## @J720_GPIO_3V
	.no_dead_strip	_jornada720_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 jornada720_pcmcia_hw_init
_jornada720_pcmcia_hw_init:             ; @jornada720_pcmcia_hw_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	x21, [x0, #16]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #8
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
	ldr	x10, [x19, #8]
	cmp	x10, #0
	csel	x1, x9, x8, eq
Lloh7:
	adrp	x22, _GPIOD_OUT_LOW@GOTPAGE
Lloh8:
	ldr	x22, [x22, _GPIOD_OUT_LOW@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x21
	bl	_devm_gpiod_get
	ldr	x8, [x20]
Lloh9:
	adrp	x23, _J720_GPIO_PWR@GOTPAGE
Lloh10:
	ldr	x23, [x23, _J720_GPIO_PWR@GOTPAGEOFF]
	ldr	x9, [x23]
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x20]
	ldr	x0, [x8, x9]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x20]
	ldr	x9, [x23]
	b	LBB0_6
LBB0_3:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_4:
Lloh14:
	adrp	x8, l_.str.2@PAGE
Lloh15:
	add	x8, x8, l_.str.2@PAGEOFF
	ldr	x9, [x19, #8]
Lloh16:
	adrp	x10, l_.str.3@PAGE
Lloh17:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x9, #0
	csel	x1, x10, x8, eq
	ldr	w2, [x22]
	mov	x0, x21
	bl	_devm_gpiod_get
	ldr	x8, [x20]
Lloh18:
	adrp	x21, _J720_GPIO_3V@GOTPAGE
Lloh19:
	ldr	x21, [x21, _J720_GPIO_3V@GOTPAGEOFF]
	ldr	x9, [x21]
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x20]
	ldr	x0, [x8, x9]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x20]
	ldr	x9, [x21]
LBB0_6:
	ldr	x0, [x8, x9, lsl #3]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_7:
	str	x20, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s1-power"

l_.str.1:                               ; @.str.1
	.asciz	"s0-power"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.comm	_J720_GPIO_PWR,8,3              ; @J720_GPIO_PWR
l_.str.2:                               ; @.str.2
	.asciz	"s1-3v"

l_.str.3:                               ; @.str.3
	.asciz	"s0-3v"

	.comm	_J720_GPIO_3V,8,3               ; @J720_GPIO_3V
	.no_dead_strip	_jornada720_pcmcia_hw_init
.subsections_via_symbols
