	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crystalcove_update_irq_mask
_crystalcove_update_irq_mask:           ## @crystalcove_update_irq_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	cmpl	$8, %esi
	jge	LBB0_1
## %bb.2:
	movq	_MGPIO0IRQS0@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MGPIO1IRQS0@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r14d
	leal	7(%rsi), %eax
	testl	%esi, %esi
	cmovnsl	%esi, %eax
	andl	$-8, %eax
	subl	%eax, %esi
	movl	%esi, %edi
	callq	_BIT
	xorl	%ecx, %ecx
	cmpq	$0, 8(%rbx)
	movl	(%rbx), %edi
	cmovnel	%eax, %ecx
	movl	%r14d, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MGPIO0IRQS0,4,2                ## @MGPIO0IRQS0
	.comm	_MGPIO1IRQS0,4,2                ## @MGPIO1IRQS0
	.no_dead_strip	_crystalcove_update_irq_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crystalcove_update_irq_mask
_crystalcove_update_irq_mask:           ; @crystalcove_update_irq_mask
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _MGPIO0IRQS0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MGPIO0IRQS0@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MGPIO1IRQS0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MGPIO1IRQS0@GOTPAGEOFF]
	cmp	w1, #8
	csel	x8, x8, x9, lt
	ldr	w20, [x8]
	negs	w8, w1
	and	w8, w8, #0x7
	and	w9, w1, #0x7
	csneg	w0, w9, w8, mi
	bl	_BIT
	mov	x2, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x19]
	cmp	x8, #0
	csel	w3, wzr, w2, eq
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_regmap_update_bits
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MGPIO0IRQS0,4,2                ; @MGPIO0IRQS0
	.comm	_MGPIO1IRQS0,4,2                ; @MGPIO1IRQS0
	.no_dead_strip	_crystalcove_update_irq_mask
.subsections_via_symbols
