	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm63xx_pcmcia_set_socket
_bcm63xx_pcmcia_set_socket:             ## @bcm63xx_pcmcia_set_socket
	.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	%rsi, %r14
	movq	(%rdi), %rbx
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_PCMCIA_C1_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_pcmcia_readl
	movq	_SS_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PCMCIA_C1_RESET_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edi
	orl	%eax, %edi
	movl	%ecx, %esi
	notl	%esi
	andl	%eax, %esi
	testl	%edx, (%r14)
	cmovnel	%edi, %esi
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_CARD_CARDBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	cmovel	%eax, %ecx
	xorl	%ecx, %esi
LBB0_2:
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_pcmcia_writel
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCMCIA_C1_REG,4,2              ## @PCMCIA_C1_REG
	.comm	_SS_RESET,4,2                   ## @SS_RESET
	.comm	_PCMCIA_C1_RESET_MASK,4,2       ## @PCMCIA_C1_RESET_MASK
	.comm	_CARD_CARDBUS,4,2               ## @CARD_CARDBUS
	.no_dead_strip	_bcm63xx_pcmcia_set_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm63xx_pcmcia_set_socket
_bcm63xx_pcmcia_set_socket:             ; @bcm63xx_pcmcia_set_socket
	.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, x1
	ldr	x20, [x0]
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x22, _PCMCIA_C1_REG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PCMCIA_C1_REG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_pcmcia_readl
	ldr	w9, [x19]
Lloh2:
	adrp	x8, _SS_RESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SS_RESET@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x8]
Lloh5:
	adrp	x8, _PCMCIA_C1_RESET_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCMCIA_C1_RESET_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w11, w8, w0
	bic	w12, w0, w8
	tst	w10, w9
	csel	w1, w12, w11, eq
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	w9, [x20]
Lloh8:
	adrp	x10, _CARD_CARDBUS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CARD_CARDBUS@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	csel	w8, wzr, w8, eq
	eor	w1, w1, w8
LBB0_2:
	ldr	w2, [x22]
	mov	x0, x20
	bl	_pcmcia_writel
	ldr	w8, [x19]
	str	w8, [x20, #8]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PCMCIA_C1_REG,4,2              ; @PCMCIA_C1_REG
	.comm	_SS_RESET,4,2                   ; @SS_RESET
	.comm	_PCMCIA_C1_RESET_MASK,4,2       ; @PCMCIA_C1_RESET_MASK
	.comm	_CARD_CARDBUS,4,2               ; @CARD_CARDBUS
	.no_dead_strip	_bcm63xx_pcmcia_set_socket
.subsections_via_symbols
