	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s2255_start_acquire
_s2255_start_acquire:                   ## @s2255_start_acquire
	.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	%rdi, %r15
	movl	40(%rdi), %edi
	callq	_to_s2255_dev
	movq	%rax, %r14
	movq	16(%rax), %rbx
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	_G_chnmap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %r12
	movl	$-1, 8(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r15)
	movq	_SYS_FRAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_2
## %bb.1:
	movq	16(%r15), %rdi
	shlq	$4, %rsi
	callq	___bzero
LBB0_2:
	movq	_IN_DATA_TOKEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%r12, %rdi
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx)
	movq	_CMD_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	8(%r14), %rdi
	movq	%rbx, %rsi
	movl	$512, %edx                      ## imm = 0x200
	callq	_s2255_write_config
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_4:
	movq	(%r15), %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	$2, %esi
	movl	%ebx, %r8d
	callq	_dprintk
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_G_chnmap,8,3                   ## @G_chnmap
	.comm	_SYS_FRAMES,4,2                 ## @SYS_FRAMES
	.comm	_IN_DATA_TOKEN,8,3              ## @IN_DATA_TOKEN
	.comm	_CMD_START,8,3                  ## @CMD_START
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CMD_START error\n"

L_.str.1:                               ## @.str.1
	.asciz	"start acquire exit[%d] %d\n"

	.no_dead_strip	_s2255_start_acquire
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s2255_start_acquire
_s2255_start_acquire:                   ; @s2255_start_acquire
	.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	x20, x0
	ldr	w0, [x0, #40]
	bl	_to_s2255_dev
	mov	x19, x0
	ldr	x21, [x0, #16]
	bl	_mutex_lock
Lloh0:
	adrp	x8, _G_chnmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _G_chnmap@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	x22, [x8, x9, lsl #3]
	mov	w8, #-1
	str	w8, [x20, #8]
	stp	xzr, xzr, [x20, #24]
Lloh3:
	adrp	x8, _SYS_FRAMES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYS_FRAMES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x0, [x20, #16]
	lsl	x1, x8, #4
	bl	_bzero
LBB0_2:
Lloh6:
	adrp	x8, _IN_DATA_TOKEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IN_DATA_TOKEN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x21]
	mov	x0, x22
	bl	_cpu_to_le32
Lloh9:
	adrp	x8, _CMD_START@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMD_START@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stp	x0, x8, [x21, #8]
	ldr	x0, [x19, #8]
	mov	x1, x21
	mov	w2, #512
	bl	_s2255_write_config
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_4:
	ldr	x3, [x20]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #2
	mov	x4, x21
	bl	_dprintk
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_G_chnmap,8,3                   ; @G_chnmap
	.comm	_SYS_FRAMES,4,2                 ; @SYS_FRAMES
	.comm	_IN_DATA_TOKEN,8,3              ; @IN_DATA_TOKEN
	.comm	_CMD_START,8,3                  ; @CMD_START
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CMD_START error\n"

l_.str.1:                               ; @.str.1
	.asciz	"start acquire exit[%d] %d\n"

	.no_dead_strip	_s2255_start_acquire
.subsections_via_symbols
