	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cabc_mode_store
_cabc_mode_store:                       ## @cabc_mode_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, %r15
	movq	%rdx, %r12
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	_acx565akm_cabc_modes@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jae	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %r13
	movq	%r13, %rdi
	callq	_strlen
	testq	%r15, %r15
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-1(%r15), %rcx
	cmpb	$10, -1(%r12,%r15)
	cmoveq	%rcx, %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r15d, %r15d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_8
LBB0_9:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %ebx
LBB0_10:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	je	LBB0_11
## %bb.12:
	cmpl	$0, 4(%r13)
	jne	LBB0_14
## %bb.13:
	testl	%ebx, %ebx
	je	LBB0_14
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subq	(%rax), %r15
	jmp	LBB0_15
LBB0_14:
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_acx565akm_set_cabc_mode
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_15:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_acx565akm_cabc_modes,8,3       ## @acx565akm_cabc_modes
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_cabc_mode_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cabc_mode_store
_cabc_mode_store:                       ; @cabc_mode_store
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x2
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x24, _acx565akm_cabc_modes@GOTPAGE
Lloh1:
	ldr	x24, [x24, _acx565akm_cabc_modes@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_7
; %bb.1:
	mov	x21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	x21, w0, uxtw
	b.hs	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x23, [x8, x21, lsl #3]
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	cbz	x19, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x8, x19, #1
	ldrb	w9, [x22, x8]
	cmp	w9, #10
	csel	x19, x8, x19, eq
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x19, w2, sxtw
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_strncmp
	cbnz	x0, LBB0_2
	b	LBB0_8
LBB0_7:
	mov	w21, #0
LBB0_8:
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.eq	LBB0_11
; %bb.9:
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_12
; %bb.10:
	cbz	w21, LBB0_12
LBB0_11:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x21
	bl	_acx565akm_set_cabc_mode
	mov	x0, x20
	bl	_mutex_unlock
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_acx565akm_cabc_modes,8,3       ; @acx565akm_cabc_modes
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_cabc_mode_store
.subsections_via_symbols
