	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gamma_store
_gamma_store:                           ## @gamma_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
	subq	$56, %rsp
	.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, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_dev_get_drvdata
	movq	%rax, %r14
	leaq	-92(%rbp), %rcx
	leaq	-88(%rbp), %r8
	leaq	-84(%rbp), %r9
	leaq	-68(%rbp), %r13
	leaq	-64(%rbp), %rax
	leaq	-60(%rbp), %r10
	leaq	-56(%rbp), %r11
	leaq	-52(%rbp), %r12
	leaq	L_.str(%rip), %rsi
	leaq	-96(%rbp), %rdx
	movq	%rbx, %rdi
	pushq	%r12
	pushq	%r11
	pushq	%r10
	pushq	%rax
	pushq	%r13
	leaq	-72(%rbp), %rax
	pushq	%rax
	leaq	-76(%rbp), %rax
	pushq	%rax
	leaq	-80(%rbp), %rax
	pushq	%rax
	callq	_sscanf
	addq	$64, %rsp
	cmpl	$12, %eax
	jne	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movl	-96(%rbp), %ecx
	movl	%ecx, (%rax)
	movl	-92(%rbp), %ecx
	movl	%ecx, 4(%rax)
	movl	-88(%rbp), %ecx
	movl	%ecx, 8(%rax)
	movl	-84(%rbp), %ecx
	movl	%ecx, 12(%rax)
	movl	-80(%rbp), %ecx
	movl	%ecx, 16(%rax)
	movl	-76(%rbp), %ecx
	movl	%ecx, 20(%rax)
	movl	-72(%rbp), %ecx
	movl	%ecx, 24(%rax)
	movl	-68(%rbp), %ecx
	movl	%ecx, 28(%rax)
	movl	-64(%rbp), %ecx
	movl	%ecx, 32(%rax)
	movl	-60(%rbp), %ecx
	movl	%ecx, 36(%rax)
	movl	-56(%rbp), %ecx
	movl	%ecx, 40(%rax)
	movl	-52(%rbp), %ecx
	movl	%ecx, 44(%rax)
	movq	%r14, %rdi
	callq	_td043mtea1_write_gamma
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subq	(%rax), %r15
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u %u %u %u %u %u %u %u %u %u %u %u"

	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_gamma_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gamma_store
_gamma_store:                           ; @gamma_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x3
	mov	x21, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_dev_get_drvdata
	mov	x20, x0
	add	x8, sp, #56
	add	x3, x8, #4
	add	x4, x8, #8
	add	x5, x8, #12
	add	x6, x8, #16
	add	x7, x8, #20
	add	x9, x8, #24
	add	x10, x8, #28
	add	x11, x8, #32
	add	x12, x8, #36
	add	x13, x8, #40
	add	x8, x8, #44
	stp	x13, x8, [sp, #32]
	stp	x11, x12, [sp, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #56
	stp	x9, x10, [sp]
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #12
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	w9, [sp, #56]
	str	w9, [x8]
	ldr	w9, [sp, #60]
	str	w9, [x8, #4]
	ldr	w9, [sp, #64]
	str	w9, [x8, #8]
	ldr	w9, [sp, #68]
	str	w9, [x8, #12]
	ldr	w9, [sp, #72]
	str	w9, [x8, #16]
	ldr	w9, [sp, #76]
	str	w9, [x8, #20]
	ldr	w9, [sp, #80]
	str	w9, [x8, #24]
	ldr	w9, [sp, #84]
	str	w9, [x8, #28]
	ldr	w9, [sp, #88]
	str	w9, [x8, #32]
	ldr	w9, [sp, #92]
	str	w9, [x8, #36]
	ldr	w9, [sp, #96]
	str	w9, [x8, #40]
	ldr	w9, [sp, #100]
	str	w9, [x8, #44]
	mov	x0, x20
	bl	_td043mtea1_write_gamma
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_3:
	ldur	x8, [x29, #-40]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u %u %u %u %u %u %u %u %u %u %u %u"

	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_gamma_store
.subsections_via_symbols
