	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function port_select_store
_port_select_store:                     ## @port_select_store
	.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	%rcx, %r14
	movq	%rdx, %rbx
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	-48(%rbp), %rax
	movq	%rax, (%r12)
	movq	%r12, %rdi
	addq	$24, %rdi
	callq	_local_read
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	16(%r12), %rdi
	callq	_CS_UNLOCK
	movq	_STMSPER@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	16(%r12), %rdi
	callq	_readl_relaxed
	movq	%rax, %rbx
	movq	(%r13), %rsi
	addq	16(%r12), %rsi
	xorl	%edi, %edi
	callq	_writel_relaxed
	movq	(%r12), %rdi
	movq	_STMSPSCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r12), %rsi
	callq	_writel_relaxed
	movq	(%r13), %rsi
	addq	16(%r12), %rsi
	movq	%rbx, %rdi
	callq	_writel_relaxed
	movq	16(%r12), %rdi
	callq	_CS_LOCK
LBB0_3:
	movq	%r15, %rdi
	callq	_spin_unlock
	movl	%r14d, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STMSPER,8,3                    ## @STMSPER
	.comm	_STMSPSCR,8,3                   ## @STMSPSCR
	.no_dead_strip	_port_select_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function port_select_store
_port_select_store:                     ; @port_select_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x21, x2
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #16
	bl	_kstrtoul
	cbnz	w0, LBB0_4
; %bb.1:
	add	x21, x20, #8
	mov	x0, x21
	bl	_spin_lock
	ldr	x8, [sp, #8]
	mov	x0, x20
	str	x8, [x0], #24
	bl	_local_read
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x20, #16]
	bl	_CS_UNLOCK
	ldr	x8, [x20, #16]
Lloh0:
	adrp	x23, _STMSPER@GOTPAGE
Lloh1:
	ldr	x23, [x23, _STMSPER@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x22, x0
	ldr	x8, [x20, #16]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	x0, #0
	bl	_writel_relaxed
	ldr	x0, [x20]
	ldr	x8, [x20, #16]
Lloh2:
	adrp	x9, _STMSPSCR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _STMSPSCR@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x20, #16]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	x0, x22
	bl	_writel_relaxed
	ldr	x0, [x20, #16]
	bl	_CS_LOCK
LBB0_3:
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x19
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_STMSPER,8,3                    ; @STMSPER
	.comm	_STMSPSCR,8,3                   ; @STMSPSCR
	.no_dead_strip	_port_select_store
.subsections_via_symbols
