	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parisc_agp_create_gatt_table
_parisc_agp_create_gatt_table:          ## @parisc_agp_create_gatt_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_parisc_agp_info@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_16
## %bb.1:
	movq	_agp_bridge@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rax), %rdx
	cmpl	$4, %r9d
	jb	LBB0_2
## %bb.3:
	leaq	8(%rcx), %rax
	cmpq	%rax, %rdx
	jae	LBB0_6
## %bb.4:
	leaq	(%rdx,%r9,8), %rax
	cmpq	%rax, %rcx
	jae	LBB0_6
LBB0_2:
	xorl	%esi, %esi
LBB0_12:
	movq	%rsi, %r8
	notq	%r8
	addq	%r9, %r8
	movq	%r9, %rax
	andq	$3, %rax
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdi
	movq	%rdi, (%rdx,%rsi,8)
	incq	%rsi
	decq	%rax
	jne	LBB0_13
LBB0_14:
	cmpq	$3, %r8
	jb	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rax
	movq	%rax, (%rdx,%rsi,8)
	movq	(%rcx), %rax
	movq	%rax, 8(%rdx,%rsi,8)
	movq	(%rcx), %rax
	movq	%rax, 16(%rdx,%rsi,8)
	movq	(%rcx), %rax
	movq	%rax, 24(%rdx,%rsi,8)
	addq	$4, %rsi
	cmpq	%rsi, %r9
	jne	LBB0_15
	jmp	LBB0_16
LBB0_6:
	movl	%r9d, %esi
	andl	$-4, %esi
	leaq	-4(%rsi), %rax
	movq	%rax, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	%r8, %rax
	andq	$-2, %rax
	movq	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rdx,%rdi,8)
	movdqu	%xmm0, 16(%rdx,%rdi,8)
	movdqu	%xmm0, 32(%rdx,%rdi,8)
	movdqu	%xmm0, 48(%rdx,%rdi,8)
	addq	$8, %rdi
	addq	$-2, %rax
	jne	LBB0_8
## %bb.9:
	testb	$1, %r8b
	je	LBB0_11
LBB0_10:
	movq	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	movdqu	%xmm0, (%rdx,%rdi,8)
	movdqu	%xmm0, 16(%rdx,%rdi,8)
LBB0_11:
	cmpq	%r9, %rsi
	jne	LBB0_12
LBB0_16:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_17:
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_parisc_agp_info,16,3           ## @parisc_agp_info
	.comm	_agp_bridge,8,3                 ## @agp_bridge
	.no_dead_strip	_parisc_agp_create_gatt_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parisc_agp_create_gatt_table
_parisc_agp_create_gatt_table:          ; @parisc_agp_create_gatt_table
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x10, _parisc_agp_info@GOTPAGE
Lloh1:
	ldr	x10, [x10, _parisc_agp_info@GOTPAGEOFF]
	ldr	w9, [x10]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.1:
Lloh2:
	adrp	x8, _agp_bridge@GOTPAGE
Lloh3:
	ldr	x8, [x8, _agp_bridge@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x10, [x10, #8]
	cmp	w9, #8
	b.lo	LBB0_6
; %bb.2:
	add	x11, x10, x9, lsl #3
	add	x12, x8, #8
	cmp	x10, x12
	ccmp	x8, x11, #2, lo
	b.lo	LBB0_6
; %bb.3:
	and	x11, x9, #0xfffffff8
	ld1r.2d	{ v0 }, [x8]
	add	x12, x10, #32
	mov	x13, x11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x8]
	dup.2d	v1, v1[0]
	stp	q0, q0, [x12, #-32]
	stp	q0, q1, [x12], #64
	subs	x13, x13, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x11, x9
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	x11, #0
LBB0_7:
	add	x10, x10, x11, lsl #3
	sub	x9, x9, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8]
	str	x11, [x10], #8
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_parisc_agp_info,16,3           ; @parisc_agp_info
	.comm	_agp_bridge,8,3                 ; @agp_bridge
	.no_dead_strip	_parisc_agp_create_gatt_table
.subsections_via_symbols
