	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h3600_pcmcia_hw_shutdown
_h3600_pcmcia_hw_shutdown:              ## @h3600_pcmcia_hw_shutdown
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_H3XXX_EGPIO_OPT_NVRAM_ON@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_gpio_set_value
	movq	_H3XXX_EGPIO_OPT_ON@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_gpio_set_value
	movq	_H3XXX_EGPIO_OPT_RESET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_gpio_set_value
	movq	_H3XXX_EGPIO_CARD_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gpio_free
	movl	(%rbx), %edi
	callq	_gpio_free
	movl	(%r15), %edi
	callq	_gpio_free
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gpio_free                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_H3XXX_EGPIO_OPT_NVRAM_ON,4,2   ## @H3XXX_EGPIO_OPT_NVRAM_ON
	.comm	_H3XXX_EGPIO_OPT_ON,4,2         ## @H3XXX_EGPIO_OPT_ON
	.comm	_H3XXX_EGPIO_OPT_RESET,4,2      ## @H3XXX_EGPIO_OPT_RESET
	.comm	_H3XXX_EGPIO_CARD_RESET,4,2     ## @H3XXX_EGPIO_CARD_RESET
	.no_dead_strip	_h3600_pcmcia_hw_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h3600_pcmcia_hw_shutdown
_h3600_pcmcia_hw_shutdown:              ; @h3600_pcmcia_hw_shutdown
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	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_2:
Lloh0:
	adrp	x19, _H3XXX_EGPIO_OPT_NVRAM_ON@GOTPAGE
Lloh1:
	ldr	x19, [x19, _H3XXX_EGPIO_OPT_NVRAM_ON@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w1, #0
	bl	_gpio_set_value
Lloh2:
	adrp	x20, _H3XXX_EGPIO_OPT_ON@GOTPAGE
Lloh3:
	ldr	x20, [x20, _H3XXX_EGPIO_OPT_ON@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #0
	bl	_gpio_set_value
Lloh4:
	adrp	x21, _H3XXX_EGPIO_OPT_RESET@GOTPAGE
Lloh5:
	ldr	x21, [x21, _H3XXX_EGPIO_OPT_RESET@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #1
	bl	_gpio_set_value
Lloh6:
	adrp	x8, _H3XXX_EGPIO_CARD_RESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _H3XXX_EGPIO_CARD_RESET@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_gpio_free
	ldr	w0, [x21]
	bl	_gpio_free
	ldr	w0, [x20]
	bl	_gpio_free
	ldr	w0, [x19]
	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
	b	_gpio_free
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_H3XXX_EGPIO_OPT_NVRAM_ON,4,2   ; @H3XXX_EGPIO_OPT_NVRAM_ON
	.comm	_H3XXX_EGPIO_OPT_ON,4,2         ; @H3XXX_EGPIO_OPT_ON
	.comm	_H3XXX_EGPIO_OPT_RESET,4,2      ; @H3XXX_EGPIO_OPT_RESET
	.comm	_H3XXX_EGPIO_CARD_RESET,4,2     ; @H3XXX_EGPIO_CARD_RESET
	.no_dead_strip	_h3600_pcmcia_hw_shutdown
.subsections_via_symbols
