	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max8998_irq_thread
_max8998_irq_thread:                    ## @max8998_irq_thread
	.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	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX8998_NUM_IRQ_REGS@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	20(%r12), %edi
	movq	_MAX8998_REG_IRQ1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	movq	%r15, %rcx
	callq	_max8998_bulk_read
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_18
## %bb.2:
	movq	(%r12), %rcx
	cmpl	$8, %eax
	jb	LBB0_3
## %bb.5:
	leaq	(%rcx,%rax,4), %rdx
	cmpq	%rdx, %r15
	jae	LBB0_8
## %bb.6:
	leaq	(%r15,%rax,4), %rdx
	cmpq	%rdx, %rcx
	jae	LBB0_8
LBB0_3:
	xorl	%edx, %edx
LBB0_14:
	movq	%rdx, %rsi
	notq	%rsi
	testb	$1, %al
	je	LBB0_16
## %bb.15:
	movl	(%rcx,%rdx,4), %edi
	notl	%edi
	andl	%edi, (%r15,%rdx,4)
	orq	$1, %rdx
LBB0_16:
	addq	%rax, %rsi
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %esi
	notl	%esi
	andl	%esi, (%r15,%rdx,4)
	movl	4(%rcx,%rdx,4), %esi
	notl	%esi
	andl	%esi, 4(%r15,%rdx,4)
	addq	$2, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_17
	jmp	LBB0_18
LBB0_4:
	movl	16(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_26
LBB0_8:
	movl	%eax, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$3, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_29
## %bb.9:
	movq	%rbx, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rcx,%rsi,4), %xmm0
	movups	16(%rcx,%rsi,4), %xmm1
	andnps	(%r15,%rsi,4), %xmm0
	andnps	16(%r15,%rsi,4), %xmm1
	movaps	%xmm0, (%r15,%rsi,4)
	movaps	%xmm1, 16(%r15,%rsi,4)
	movups	32(%rcx,%rsi,4), %xmm0
	movups	48(%rcx,%rsi,4), %xmm1
	andnps	32(%r15,%rsi,4), %xmm0
	andnps	48(%r15,%rsi,4), %xmm1
	movaps	%xmm0, 32(%r15,%rsi,4)
	movaps	%xmm1, 48(%r15,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %rdi
	jne	LBB0_10
## %bb.11:
	testb	$1, %bl
	je	LBB0_13
LBB0_12:
	movups	(%rcx,%rsi,4), %xmm0
	movups	16(%rcx,%rsi,4), %xmm1
	andnps	(%r15,%rsi,4), %xmm0
	andnps	16(%r15,%rsi,4), %xmm1
	movaps	%xmm0, (%r15,%rsi,4)
	movaps	%xmm1, 16(%r15,%rsi,4)
LBB0_13:
	cmpq	%rax, %rdx
	jne	LBB0_14
LBB0_18:
	movq	_MAX8998_IRQ_NR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jle	LBB0_27
## %bb.19:
	xorl	%ebx, %ebx
	movq	_max8998_irqs@GOTPCREL(%rip), %r14
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_24
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	movslq	(%rcx,%rbx,8), %rdx
	movl	4(%rcx,%rbx,8), %ecx
	testl	%ecx, -4(%r15,%rdx,4)
	je	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	%r12, %r13
	movl	12(%r12), %edi
	movl	%ebx, %esi
	callq	_irq_find_mapping
	movl	%eax, %r12d
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	%r12d, %edi
	callq	_handle_nested_irq
	movq	_MAX8998_IRQ_NR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r13, %r12
	jmp	LBB0_20
LBB0_24:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rcx
	jmp	LBB0_27
LBB0_25:
	movl	8(%r13), %edi
	callq	_disable_irq_nosync
LBB0_26:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rcx
LBB0_27:
	movl	(%rcx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_30
## %bb.28:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	xorl	%esi, %esi
	testb	$1, %bl
	jne	LBB0_12
	jmp	LBB0_13
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX8998_NUM_IRQ_REGS,4,2       ## @MAX8998_NUM_IRQ_REGS
	.comm	_MAX8998_REG_IRQ1,4,2           ## @MAX8998_REG_IRQ1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read interrupt register: %d\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_MAX8998_IRQ_NR,4,2             ## @MAX8998_IRQ_NR
	.comm	_max8998_irqs,8,3               ## @max8998_irqs
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_max8998_irq_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max8998_irq_thread
_max8998_irq_thread:                    ; @max8998_irq_thread
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x21, _MAX8998_NUM_IRQ_REGS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MAX8998_NUM_IRQ_REGS@GOTPAGEOFF]
	ldr	w2, [x21]
	lsl	x8, x2, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w0, [x1, #20]
Lloh7:
	adrp	x8, _MAX8998_REG_IRQ1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX8998_REG_IRQ1@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x20
	bl	_max8998_bulk_read
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	ldr	x9, [x19]
	cmp	w8, #16
	b.lo	LBB0_8
; %bb.3:
	lsl	x10, x8, #2
	add	x11, x20, x10
	add	x10, x9, x10
	cmp	x20, x10
	ccmp	x9, x11, #2, lo
	b.lo	LBB0_8
; %bb.4:
	and	x10, x8, #0xfffffff0
	add	x11, x20, #32
	add	x12, x9, #32
	mov	x13, x10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11]
	bic.16b	v0, v4, v0
	bic.16b	v1, v5, v1
	bic.16b	v2, v6, v2
	bic.16b	v3, v7, v3
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x13, x13, #16
	b.ne	LBB0_5
; %bb.6:
	cmp	x10, x8
	b.ne	LBB0_9
	b	LBB0_11
LBB0_7:
	mov	x2, x0
	ldr	w0, [x19, #16]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_19
LBB0_8:
	mov	x10, #0
LBB0_9:
	lsl	x12, x10, #2
	add	x11, x20, x12
	add	x9, x9, x12
	sub	x8, x8, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #4
	ldr	w12, [x11]
	bic	w10, w12, w10
	str	w10, [x11], #4
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
Lloh12:
	adrp	x24, _MAX8998_IRQ_NR@GOTPAGE
Lloh13:
	ldr	x24, [x24, _MAX8998_IRQ_NR@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.12:
	mov	x25, #0
	mov	x21, #0
Lloh14:
	adrp	x26, _max8998_irqs@GOTPAGE
Lloh15:
	ldr	x26, [x26, _max8998_irqs@GOTPAGEOFF]
Lloh16:
	adrp	x23, _IRQ_HANDLED@GOTPAGE
Lloh17:
	ldr	x23, [x23, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x21, x21, #1
	add	x25, x25, #8
	cmp	x21, w8, sxtw
	b.ge	LBB0_20
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x26]
	add	x9, x9, x25
	ldp	w10, w9, [x9]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	add	x10, x20, x10, lsl #2
	ldur	w10, [x10, #-4]
	tst	w9, w10
	b.eq	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x19, #12]
	mov	x1, x21
	bl	_irq_find_mapping
	mov	x22, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x22
	bl	_handle_nested_irq
	ldr	w8, [x24]
	b	LBB0_13
LBB0_17:
Lloh18:
	adrp	x23, _IRQ_HANDLED@GOTPAGE
Lloh19:
	ldr	x23, [x23, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	ldr	w0, [x19, #8]
	bl	_disable_irq_nosync
LBB0_19:
Lloh20:
	adrp	x23, _IRQ_NONE@GOTPAGE
Lloh21:
	ldr	x23, [x23, _IRQ_NONE@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x23]
	ldur	x8, [x29, #-72]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX8998_NUM_IRQ_REGS,4,2       ; @MAX8998_NUM_IRQ_REGS
	.comm	_MAX8998_REG_IRQ1,4,2           ; @MAX8998_REG_IRQ1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read interrupt register: %d\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_MAX8998_IRQ_NR,4,2             ; @MAX8998_IRQ_NR
	.comm	_max8998_irqs,8,3               ; @max8998_irqs
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_max8998_irq_thread
.subsections_via_symbols
