	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function es7000_rename_gsi
_es7000_rename_gsi:                     ## @es7000_rename_gsi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	_es7000_plat@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_ES7000_ZORRO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_12
## %bb.1:
	movq	_base@GOTPCREL(%rip), %r10
	movq	(%r10), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
LBB0_11:
	xorl	%ecx, %ecx
	cmpl	$16, %eax
	cmovgel	%ecx, %edx
	testl	%edi, %edi
	cmovnel	%ecx, %edx
	addl	%eax, %edx
	movl	%edx, %eax
LBB0_12:
	popq	%rbp
	retq
LBB0_2:
	movq	_nr_ioapics@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	testl	%r9d, %r9d
	jle	LBB0_3
## %bb.4:
	movq	_nr_ioapic_registers@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	leaq	-1(%r9), %rcx
	movl	%r9d, %r8d
	andl	$3, %r8d
	cmpq	$3, %rcx
	jae	LBB0_6
## %bb.5:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_3:
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_6:
	andl	$-4, %r9d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	addq	(%rsi,%rcx,8), %rdx
	movq	%rdx, (%r10)
	addq	8(%rsi,%rcx,8), %rdx
	movq	%rdx, (%r10)
	addq	16(%rsi,%rcx,8), %rdx
	movq	%rdx, (%r10)
	addq	24(%rsi,%rcx,8), %rdx
	movq	%rdx, (%r10)
	addq	$4, %rcx
	cmpq	%rcx, %r9
	jne	LBB0_7
LBB0_8:
	testq	%r8, %r8
	je	LBB0_11
## %bb.9:
	leaq	(%rsi,%rcx,8), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	addq	(%rcx,%rsi,8), %rdx
	movq	%rdx, (%r10)
	incq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_es7000_plat,8,3                ## @es7000_plat
	.comm	_ES7000_ZORRO,8,3               ## @ES7000_ZORRO
	.comm	_base,8,3                       ## @base
	.comm	_nr_ioapics,4,2                 ## @nr_ioapics
	.comm	_nr_ioapic_registers,8,3        ## @nr_ioapic_registers
	.no_dead_strip	_es7000_rename_gsi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function es7000_rename_gsi
_es7000_rename_gsi:                     ; @es7000_rename_gsi
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _es7000_plat@GOTPAGE
Lloh1:
	ldr	x8, [x8, _es7000_plat@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ES7000_ZORRO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ES7000_ZORRO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.1:
Lloh6:
	adrp	x8, _base@GOTPAGE
Lloh7:
	ldr	x8, [x8, _base@GOTPAGEOFF]
	ldr	x9, [x8]
	cbnz	x9, LBB0_6
; %bb.2:
Lloh8:
	adrp	x9, _nr_ioapics@GOTPAGE
Lloh9:
	ldr	x9, [x9, _nr_ioapics@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x9]
	cmp	w10, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x9, #0
Lloh11:
	adrp	x11, _nr_ioapic_registers@GOTPAGE
Lloh12:
	ldr	x11, [x11, _nr_ioapic_registers@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11], #8
	add	x9, x9, x12
	str	x9, [x8]
	subs	x10, x10, #1
	b.ne	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	x9, #0
LBB0_6:
	cmp	w1, #16
	ccmp	w0, #0, #0, lt
	csel	w8, w9, wzr, eq
	add	w1, w8, w1
LBB0_7:
	mov	x0, x1
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_es7000_plat,8,3                ; @es7000_plat
	.comm	_ES7000_ZORRO,8,3               ; @ES7000_ZORRO
	.comm	_base,8,3                       ; @base
	.comm	_nr_ioapics,4,2                 ; @nr_ioapics
	.comm	_nr_ioapic_registers,8,3        ; @nr_ioapic_registers
	.no_dead_strip	_es7000_rename_gsi
.subsections_via_symbols
