	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_sci_inta_alloc_parent_irq
_ti_sci_inta_alloc_parent_irq:          ## @ti_sci_inta_alloc_parent_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	%rdi, %r15
	movq	(%rdi), %r14
	movl	16(%r14), %edi
	callq	_ti_sci_get_free_resource
	movq	%rax, %rbx
	movq	_TI_SCI_RESOURCE_NULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_5:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_ti_sci_inta_alloc_parent_irq.cold.1
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function ti_sci_inta_alloc_parent_irq.cold.1
_ti_sci_inta_alloc_parent_irq.cold.1:   ## @ti_sci_inta_alloc_parent_irq.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rcx, %rbx
	movq	%rsi, 16(%rdi)
	movq	%rdx, 8(%rdi)
	addq	$4, %rdi
	callq	_INIT_LIST_HEAD
	movq	8(%rbx), %rdi
	addq	$8, %rdi
	callq	_dev_of_node
	movl	%eax, %edi
	callq	_of_irq_find_parent
	movl	%eax, %edi
	callq	_of_node_to_fwnode
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_TI_SCI_RESOURCE_NULL,8,3       ## @TI_SCI_RESOURCE_NULL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ti_sci_inta_irq_handler,4,2    ## @ti_sci_inta_irq_handler
	.no_dead_strip	_ti_sci_inta_alloc_parent_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_sci_inta_alloc_parent_irq
_ti_sci_inta_alloc_parent_irq:          ; @ti_sci_inta_alloc_parent_irq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	ldr	x19, [x0]
	ldr	w0, [x19, #16]
	bl	_ti_sci_get_free_resource
Lloh0:
	adrp	x8, _TI_SCI_RESOURCE_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TI_SCI_RESOURCE_NULL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x21, x0
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbnz	x0, LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_5:
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	bl	_ti_sci_inta_alloc_parent_irq.cold.1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function ti_sci_inta_alloc_parent_irq.cold.1
_ti_sci_inta_alloc_parent_irq.cold.1:   ; @ti_sci_inta_alloc_parent_irq.cold.1
	.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, x3
	stp	x2, x1, [x0, #8]
	add	x0, x0, #4
	bl	_INIT_LIST_HEAD
	ldr	x8, [x19, #8]
	add	x0, x8, #8
	bl	_dev_of_node
	bl	_of_irq_find_parent
	bl	_of_node_to_fwnode
	brk	#0x1
	.cfi_endproc
                                        ; -- End function
	.comm	_TI_SCI_RESOURCE_NULL,8,3       ; @TI_SCI_RESOURCE_NULL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ti_sci_inta_irq_handler,4,2    ; @ti_sci_inta_irq_handler
	.no_dead_strip	_ti_sci_inta_alloc_parent_irq
.subsections_via_symbols
