	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_bank1_mask
_store_bank1_mask:                      ## @store_bank1_mask
	.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, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	8(%r13), %rax
	movq	(%r15), %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	(%rcx), %ebx
	movl	8(%r15), %eax
	movl	%eax, %esi
	notl	%esi
	andl	%ebx, %esi
	orl	%ebx, %eax
	testl	%r12d, %r12d
	cmovel	%esi, %eax
	movl	%eax, (%rcx)
	cmpl	%ebx, %eax
	je	LBB0_3
## %bb.1:
	movq	_ABIT_UGURU_SENSOR_BANK1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$2, %rsi
	movq	%r13, %rdi
	movl	$3, %r8d
	callq	_abituguru_write
	testl	%eax, %eax
	jg	LBB0_3
## %bb.2:
	movq	8(%r13), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	%ebx, (%rax)
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
LBB0_3:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ABIT_UGURU_SENSOR_BANK1,8,3    ## @ABIT_UGURU_SENSOR_BANK1
	.comm	_EIO,8,3                        ## @EIO
	.no_dead_strip	_store_bank1_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_bank1_mask
_store_bank1_mask:                      ; @store_bank1_mask
	.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
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	mov	x21, x0
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x22
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	mov	x22, x0
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x20, #8]
	ldr	x2, [x21]
	ldr	x3, [x8, x2, lsl #3]
	ldr	w23, [x3]
	ldr	w8, [x21, #8]
	bic	w9, w23, w8
	orr	w8, w8, w23
	cmp	w22, #0
	csel	w8, w9, w8, eq
	str	w8, [x3]
	cmp	w8, w23
	b.eq	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ABIT_UGURU_SENSOR_BANK1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABIT_UGURU_SENSOR_BANK1@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, #2
	mov	x0, x20
	mov	w4, #3
	bl	_abituguru_write
	cmp	w0, #0
	b.gt	LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	str	w23, [x8]
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_3:
	mov	x0, x20
	bl	_mutex_unlock
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ABIT_UGURU_SENSOR_BANK1,8,3    ; @ABIT_UGURU_SENSOR_BANK1
	.comm	_EIO,8,3                        ; @EIO
	.no_dead_strip	_store_bank1_mask
.subsections_via_symbols
