	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function soc_common_pcmcia_config_skt
_soc_common_pcmcia_config_skt:          ## @soc_common_pcmcia_config_skt
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	48(%rdi), %rax
	callq	*(%rax)
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	jne	LBB0_15
## %bb.3:
	movq	_values@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	$2, %esi
	callq	_DECLARE_BITMAP
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, -64(%rbp)
	movl	(%r12), %esi
	movq	_SS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	(%r15), %edx
	xorl	%edi, %edi
	callq	___assign_bit
	movq	32(%rbx), %rax
	movl	$1, %edi
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_7
LBB0_1:
	movl	56(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	48(%rbx), %rax
	leaq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%eax, %edi
	callq	_WARN_ON
	jmp	LBB0_15
LBB0_4:
	movq	32(%rbx), %rax
	xorl	%edi, %edi
	testq	%rax, %rax
	je	LBB0_8
LBB0_6:
	movl	%edi, %ecx
	movq	%rax, -64(%rbp,%rcx,8)
	leal	1(%rdi), %r13d
	movl	(%r12), %esi
	movq	_SS_OUTPUT_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	(%r15), %edx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	___assign_bit
	movl	%r13d, %edi
LBB0_7:
	movl	(%r12), %ecx
	leaq	-64(%rbp), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%edx, %edx
	callq	_gpiod_set_array_value_cansleep
LBB0_8:
	cmpl	$1, (%rbx)
	movq	8(%r15), %rax
	jne	LBB0_9
## %bb.11:
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	jmp	LBB0_13
LBB0_9:
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	_IRQ_TYPE_EDGE_FALLING@GOTPCREL(%rip), %rax
	movl	$1, %ecx
LBB0_13:
	movl	%ecx, (%rbx)
	movl	24(%rbx), %edi
	movl	(%rax), %esi
	callq	_irq_set_irq_type
LBB0_14:
	movups	(%r15), %xmm0
	movups	%xmm0, 8(%rbx)
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"soc_common_pcmcia: unable to configure socket %d\n"

	.comm	_values,4,2                     ## @values
	.comm	_SS_RESET,4,2                   ## @SS_RESET
	.comm	_SS_OUTPUT_ENA,4,2              ## @SS_OUTPUT_ENA
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ## @IRQ_TYPE_EDGE_FALLING
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
	.no_dead_strip	_soc_common_pcmcia_config_skt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function soc_common_pcmcia_config_skt
_soc_common_pcmcia_config_skt:          ; @soc_common_pcmcia_config_skt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0, #48]
	ldr	x8, [x8]
	blr	x8
	mov	x19, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	cbnz	w19, LBB0_16
; %bb.2:
Lloh3:
	adrp	x22, _values@GOTPAGE
Lloh4:
	ldr	x22, [x22, _values@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #2
	bl	_DECLARE_BITMAP
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_5
; %bb.3:
	str	x8, [sp, #8]
	ldr	w1, [x22]
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _SS_RESET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SS_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w2, w9, w8
	mov	w0, #0
	bl	___assign_bit
	ldr	x8, [x20, #32]
	mov	w0, #1
	cbnz	x8, LBB0_7
	b	LBB0_8
LBB0_4:
	ldr	w1, [x20, #56]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	ldr	x8, [x20, #48]
	ldr	x8, [x8]
	add	x1, x20, #8
	mov	x0, x20
	blr	x8
	bl	_WARN_ON
	b	LBB0_16
LBB0_5:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_9
; %bb.6:
	mov	w0, #0
LBB0_7:
	add	x9, sp, #8
	str	x8, [x9, w0, uxtw #3]
	add	w23, w0, #1
	ldr	w1, [x22]
	ldr	w8, [x21]
Lloh10:
	adrp	x9, _SS_OUTPUT_ENA@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SS_OUTPUT_ENA@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w2, w9, w8
	bl	___assign_bit
	mov	x0, x23
LBB0_8:
	ldr	w3, [x22]
	add	x1, sp, #8
	mov	x2, #0
	bl	_gpiod_set_array_value_cansleep
LBB0_9:
	ldr	w9, [x20]
	ldr	x8, [x21, #8]
	cmp	w9, #1
	b.ne	LBB0_12
; %bb.10:
	cbnz	x8, LBB0_15
; %bb.11:
	mov	w9, #0
Lloh13:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
	cbz	x8, LBB0_15
; %bb.13:
Lloh15:
	adrp	x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGEOFF]
	mov	w9, #1
LBB0_14:
	str	w9, [x20]
	ldr	w0, [x20, #24]
	ldr	w1, [x8]
	bl	_irq_set_irq_type
LBB0_15:
	ldr	q0, [x21]
	stur	q0, [x20, #8]
LBB0_16:
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"soc_common_pcmcia: unable to configure socket %d\n"

	.comm	_values,4,2                     ; @values
	.comm	_SS_RESET,4,2                   ; @SS_RESET
	.comm	_SS_OUTPUT_ENA,4,2              ; @SS_OUTPUT_ENA
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ; @IRQ_TYPE_EDGE_FALLING
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
	.no_dead_strip	_soc_common_pcmcia_config_skt
.subsections_via_symbols
