	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_alarm_mask
_set_alarm_mask:                        ## @set_alarm_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, %r15
	callq	_to_i2c_client
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %rbx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtol
	movl	%eax, %r13d
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	andl	$2147483647, %r13d              ## imm = 0x7FFFFFFF
	movl	%r13d, (%rbx)
	movl	4(%rbx), %ebx
	andl	$65536, %ebx                    ## imm = 0x10000
	shlq	$15, %rbx
	orq	%r13, %rbx
	movq	_ADM1026_REG_MASK1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%bl, %edx
	movq	%r12, %rdi
	callq	_adm1026_write_value
	movq	%r13, %rax
	movzbl	%ah, %edx
	movq	_ADM1026_REG_MASK2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_adm1026_write_value
	shrl	$16, %r13d
	movzbl	%r13b, %edx
	movq	_ADM1026_REG_MASK3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_adm1026_write_value
	shrq	$24, %rbx
	movq	_ADM1026_REG_MASK4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_adm1026_write_value
	movq	%r15, %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	_ADM1026_REG_MASK1,4,2          ## @ADM1026_REG_MASK1
	.comm	_ADM1026_REG_MASK2,4,2          ## @ADM1026_REG_MASK2
	.comm	_ADM1026_REG_MASK3,4,2          ## @ADM1026_REG_MASK3
	.comm	_ADM1026_REG_MASK4,4,2          ## @ADM1026_REG_MASK4
	.no_dead_strip	_set_alarm_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_alarm_mask
_set_alarm_mask:                        ; @set_alarm_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	x21, x2
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x22, x0
	mov	x0, x21
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtol
	mov	x21, x0
	add	x23, x22, #8
	mov	x0, x23
	bl	_mutex_lock
	and	x8, x21, #0x7fffffff
	str	w8, [x22]
	ldr	w8, [x22, #4]
	lsl	w8, w8, #15
	and	x22, x8, #0x80000000
	bfxil	x22, x21, #0, #31
Lloh0:
	adrp	x8, _ADM1026_REG_MASK1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADM1026_REG_MASK1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	and	x2, x22, #0xff
	mov	x0, x20
	bl	_adm1026_write_value
Lloh3:
	adrp	x8, _ADM1026_REG_MASK2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADM1026_REG_MASK2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ubfx	x2, x22, #8, #8
	mov	x0, x20
	bl	_adm1026_write_value
Lloh6:
	adrp	x8, _ADM1026_REG_MASK3@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADM1026_REG_MASK3@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ubfx	x2, x22, #16, #8
	mov	x0, x20
	bl	_adm1026_write_value
	lsr	x2, x22, #24
Lloh9:
	adrp	x8, _ADM1026_REG_MASK4@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADM1026_REG_MASK4@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_adm1026_write_value
	mov	x0, x23
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ADM1026_REG_MASK1,4,2          ; @ADM1026_REG_MASK1
	.comm	_ADM1026_REG_MASK2,4,2          ; @ADM1026_REG_MASK2
	.comm	_ADM1026_REG_MASK3,4,2          ; @ADM1026_REG_MASK3
	.comm	_ADM1026_REG_MASK4,4,2          ; @ADM1026_REG_MASK4
	.no_dead_strip	_set_alarm_mask
.subsections_via_symbols
