	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tps6586x_irq
_tps6586x_irq:                          ## @tps6586x_irq
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	8(%rsi), %edi
	movq	_TPS6586X_INT_ACK1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rcx
	movl	$4, %edx
	callq	_tps6586x_reads
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	-28(%rbp), %edi
	callq	_le32_to_cpu
	movl	%eax, -28(%rbp)
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movl	%eax, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	notl	%ebx
	andl	-28(%rbp), %ebx
	movl	%ebx, -28(%rbp)
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	___ffs
	movl	(%r14), %edx
	movl	$1, %ebx
	movl	%eax, %ecx
	shll	%cl, %ebx
	btl	%eax, %edx
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r14), %edi
	movl	%eax, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_handle_nested_irq
	jmp	LBB0_6
LBB0_1:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
LBB0_7:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TPS6586X_INT_ACK1,4,2          ## @TPS6586X_INT_ACK1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read interrupt status\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_tps6586x_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tps6586x_irq
_tps6586x_irq:                          ; @tps6586x_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	ldr	w0, [x1, #8]
Lloh0:
	adrp	x8, _TPS6586X_INT_ACK1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TPS6586X_INT_ACK1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	w2, #4
	bl	_tps6586x_reads
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	w0, [sp, #12]
	bl	_le32_to_cpu
	str	w0, [sp, #12]
	cbz	w0, LBB0_7
; %bb.2:
	mov	w21, #1
Lloh3:
	adrp	x20, _IRQ_HANDLED@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	bics	w0, w8, w22
	str	w0, [sp, #12]
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	___ffs
	ldr	w8, [x19]
	lsl	w22, w21, w0
	tst	w8, w22
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	ldr	w0, [x19, #4]
	bl	_irq_find_mapping
	bl	_handle_nested_irq
	b	LBB0_3
LBB0_6:
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh7:
	adrp	x20, _IRQ_NONE@GOTPAGE
Lloh8:
	ldr	x20, [x20, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x20, _IRQ_HANDLED@GOTPAGE
Lloh10:
	ldr	x20, [x20, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x20]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TPS6586X_INT_ACK1,4,2          ; @TPS6586X_INT_ACK1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read interrupt status\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_tps6586x_irq
.subsections_via_symbols
