	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_irq_to_resource             ## -- Begin function of_irq_to_resource
	.p2align	4, 0x90
_of_irq_to_resource:                    ## @of_irq_to_resource
	.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
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r15
	callq	_of_irq_get
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	testq	%r14, %r14
	je	LBB0_6
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.3:
	movq	$0, -40(%rbp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_of_property_read_string_index
	movl	%ebx, 4(%r14)
	movl	%ebx, (%r14)
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%ebx, %edi
	callq	_irq_get_irq_data
	movl	%eax, %edi
	callq	_irqd_get_trigger_type
	orl	%r12d, %eax
	movl	%eax, 8(%r14)
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_of_node_full_name
LBB0_5:
	movq	%rax, 16(%r14)
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupt-names"

	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_irq_to_resource             ; -- Begin function of_irq_to_resource
	.p2align	2
_of_irq_to_resource:                    ; @of_irq_to_resource
	.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, x2
	mov	x22, x1
	mov	x21, x0
	bl	_of_irq_get
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
; %bb.1:
	cbz	x19, LBB0_6
; %bb.2:
	cbz	w20, LBB0_6
; %bb.3:
	str	xzr, [sp, #8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	x0, x21
	mov	x2, x22
	bl	_of_property_read_string_index
	stp	w20, w20, [x19]
Lloh2:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_irq_get_irq_data
	bl	_irqd_get_trigger_type
	orr	w8, w0, w22
	str	w8, [x19, #8]
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_of_node_full_name
LBB0_5:
	str	x0, [x19, #16]
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt-names"

	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
.subsections_via_symbols
