	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tps80031_irq_init
_tps80031_irq_init:                     ## @tps80031_irq_init
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	_TPS80031_SLAVE_ID2@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	_TPS80031_INT_MSK_STS_A@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_tps80031_write
	movq	(%r13), %rsi
	movq	(%r15), %rdx
	incq	%rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_tps80031_write
	movq	(%r13), %rsi
	movq	(%r15), %rdx
	addq	$2, %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_tps80031_write
	movq	8(%rbx), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_tps80031_irq_chip@GOTPCREL(%rip), %r8
	movl	%r12d, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%rbx, %r9
	callq	_regmap_add_irq_chip
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TPS80031_SLAVE_ID2,8,3         ## @TPS80031_SLAVE_ID2
	.comm	_TPS80031_INT_MSK_STS_A,8,3     ## @TPS80031_INT_MSK_STS_A
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_tps80031_irq_chip,4,2          ## @tps80031_irq_chip
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"add irq failed, err = %d\n"

	.no_dead_strip	_tps80031_irq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tps80031_irq_init
_tps80031_irq_init:                     ; @tps80031_irq_init
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x23, _TPS80031_SLAVE_ID2@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TPS80031_SLAVE_ID2@GOTPAGEOFF]
	ldr	x1, [x23]
Lloh2:
	adrp	x24, _TPS80031_INT_MSK_STS_A@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TPS80031_INT_MSK_STS_A@GOTPAGEOFF]
	ldr	x2, [x24]
	mov	x0, x19
	mov	w3, #0
	bl	_tps80031_write
	ldr	x1, [x23]
	ldr	x8, [x24]
	add	x2, x8, #1
	mov	x0, x19
	mov	w3, #0
	bl	_tps80031_write
	ldr	x1, [x23]
	ldr	x8, [x24]
	add	x2, x8, #2
	mov	x0, x19
	mov	w3, #0
	bl	_tps80031_write
	ldr	x8, [x22, #8]
	ldr	x9, [x23]
	ldr	w0, [x8, x9, lsl #2]
Lloh4:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x4, _tps80031_irq_chip@GOTPAGE
Lloh8:
	ldr	x4, [x4, _tps80031_irq_chip@GOTPAGEOFF]
	mov	x1, x21
	mov	x3, x20
	mov	x5, x22
	bl	_regmap_add_irq_chip
	mov	x20, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_2:
	mov	x0, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TPS80031_SLAVE_ID2,8,3         ; @TPS80031_SLAVE_ID2
	.comm	_TPS80031_INT_MSK_STS_A,8,3     ; @TPS80031_INT_MSK_STS_A
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_tps80031_irq_chip,4,2          ; @tps80031_irq_chip
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"add irq failed, err = %d\n"

	.no_dead_strip	_tps80031_irq_init
.subsections_via_symbols
