	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tps65217_irq_init
_tps65217_irq_init:                     ## @tps65217_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	addq	$24, %rdi
	callq	_mutex_init
	movl	%r14d, (%rbx)
	movq	_TPS65217_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, 20(%rbx)
	movq	_TPS65217_REG_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TPS65217_PROTECT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_tps65217_set_bits
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	_TPS65217_NUM_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_tps65217_irq_domain_ops@GOTPCREL(%rip), %rdx
	movq	%rbx, %rcx
	callq	_irq_domain_add_linear
	movl	%eax, 16(%rbx)
	movq	8(%rbx), %rdi
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_tps65217_irq_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, (%rsp)
	leaq	L_.str.1(%rip), %r9
	xorl	%r15d, %r15d
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	movq	8(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %r15d
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_4:
	movl	%r14d, %edi
	callq	_enable_irq_wake
LBB0_5:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TPS65217_INT_MASK,4,2          ## @TPS65217_INT_MASK
	.comm	_TPS65217_REG_INT,4,2           ## @TPS65217_REG_INT
	.comm	_TPS65217_PROTECT_NONE,4,2      ## @TPS65217_PROTECT_NONE
	.comm	_TPS65217_NUM_IRQ,4,2           ## @TPS65217_NUM_IRQ
	.comm	_tps65217_irq_domain_ops,4,2    ## @tps65217_irq_domain_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not create IRQ domain\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tps65217_irq_thread,4,2        ## @tps65217_irq_thread
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.1:                               ## @.str.1
	.asciz	"tps65217-irq"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to request IRQ %d: %d\n"

	.no_dead_strip	_tps65217_irq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tps65217_irq_init
_tps65217_irq_init:                     ; @tps65217_irq_init
	.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
	mov	x20, x0
	add	x0, x0, #24
	bl	_mutex_init
	str	w19, [x20]
Lloh0:
	adrp	x8, _TPS65217_INT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TPS65217_INT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	str	w2, [x20, #20]
Lloh3:
	adrp	x8, _TPS65217_REG_INT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TPS65217_REG_INT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _TPS65217_PROTECT_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TPS65217_PROTECT_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x3, x2
	bl	_tps65217_set_bits
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _TPS65217_NUM_IRQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TPS65217_NUM_IRQ@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, _tps65217_irq_domain_ops@GOTPAGE
Lloh13:
	ldr	x2, [x2, _tps65217_irq_domain_ops@GOTPAGEOFF]
	mov	x3, x20
	bl	_irq_domain_add_linear
	mov	x8, x0
	str	w0, [x20, #16]
	ldr	x0, [x20, #8]
	cbz	w8, LBB0_3
; %bb.1:
Lloh14:
	adrp	x8, _tps65217_irq_thread@GOTPAGE
Lloh15:
	ldr	x8, [x8, _tps65217_irq_thread@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
Lloh17:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh19:
	ldr	w4, [x8]
Lloh20:
	adrp	x5, l_.str.1@PAGE
Lloh21:
	add	x5, x5, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x0, [x20, #8]
	stp	x19, x21, [sp]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_3:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_enable_irq_wake
LBB0_5:
	mov	x0, x21
	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 AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_TPS65217_INT_MASK,4,2          ; @TPS65217_INT_MASK
	.comm	_TPS65217_REG_INT,4,2           ; @TPS65217_REG_INT
	.comm	_TPS65217_PROTECT_NONE,4,2      ; @TPS65217_PROTECT_NONE
	.comm	_TPS65217_NUM_IRQ,4,2           ; @TPS65217_NUM_IRQ
	.comm	_tps65217_irq_domain_ops,4,2    ; @tps65217_irq_domain_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not create IRQ domain\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tps65217_irq_thread,4,2        ; @tps65217_irq_thread
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.1:                               ; @.str.1
	.asciz	"tps65217-irq"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to request IRQ %d: %d\n"

	.no_dead_strip	_tps65217_irq_init
.subsections_via_symbols
