	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macio_create_fixup_irq
_macio_create_fixup_irq:                ## @macio_create_fixup_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
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%edi, %edi
	movl	%edx, %esi
	callq	_irq_create_mapping
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	%ebx, (%r14)
	jg	LBB0_4
LBB0_3:
	incl	%ebx
	movl	%ebx, (%r14)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	8(%r14), %rax
	movslq	%ebx, %rcx
	shlq	$2, %rcx
	leaq	(%rcx,%rcx,2), %r15
	movl	$0, (%rax,%r15)
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax,%r15)
	leaq	4(%r14), %rdi
	callq	_dev_name
	movq	8(%r14), %rcx
	movl	%eax, 4(%rcx,%r15)
	cmpl	%ebx, (%r14)
	jle	LBB0_3
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
	.no_dead_strip	_macio_create_fixup_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macio_create_fixup_irq
_macio_create_fixup_irq:                ; @macio_create_fixup_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, x1
	mov	x19, x0
	mov	x0, #0
	mov	x1, x2
	bl	_irq_create_mapping
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	mov	w21, #12
	smaddl	x8, w20, w21, x8
	str	wzr, [x8]
Lloh0:
	adrp	x9, _IORESOURCE_IRQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x8, #8]
	add	x0, x19, #4
	bl	_dev_name
	ldr	x8, [x19, #8]
	smaddl	x8, w20, w21, x8
	str	w0, [x8, #4]
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, w20
	b.gt	LBB0_4
; %bb.3:
	add	w8, w20, #1
	str	w8, [x19]
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
	.no_dead_strip	_macio_create_fixup_irq
.subsections_via_symbols
