	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psb6970_fixup
_psb6970_fixup:                         ## @psb6970_fixup
	.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, %r14
	movq	8(%rdi), %rbx
	movq	(%rbx), %r15
	movq	_PSB6970_CI1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PHYADDR
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	*%r15
	movq	_PSB6970_CI1_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_PSB6970_CI1_VAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	shll	$16, %eax
	movl	%eax, (%r14)
	movq	(%rbx), %r15
	movq	_PSB6970_CI0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PHYADDR
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	*%r15
	movq	_PSB6970_CI0_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%eax, (%r14)
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSB6970_CI1,4,2                ## @PSB6970_CI1
	.comm	_PSB6970_CI1_MASK,4,2           ## @PSB6970_CI1_MASK
	.comm	_PSB6970_CI1_VAL,4,2            ## @PSB6970_CI1_VAL
	.comm	_PSB6970_CI0,4,2                ## @PSB6970_CI0
	.comm	_PSB6970_CI0_MASK,4,2           ## @PSB6970_CI0_MASK
	.no_dead_strip	_psb6970_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psb6970_fixup
_psb6970_fixup:                         ; @psb6970_fixup
	.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	x19, x0
	ldr	x20, [x0, #8]
	ldr	x21, [x20]
Lloh0:
	adrp	x8, _PSB6970_CI1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSB6970_CI1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_PHYADDR
	mov	x1, x0
	mov	x0, x20
	blr	x21
Lloh3:
	adrp	x8, _PSB6970_CI1_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PSB6970_CI1_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _PSB6970_CI1_VAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PSB6970_CI1_VAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	lsl	w8, w8, #16
	str	w8, [x19]
	ldr	x21, [x20]
Lloh9:
	adrp	x8, _PSB6970_CI0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PSB6970_CI0@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_PHYADDR
	mov	x1, x0
	mov	x0, x20
	blr	x21
Lloh12:
	adrp	x8, _PSB6970_CI0_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PSB6970_CI0_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w0
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_2:
	mov	w0, #0
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PSB6970_CI1,4,2                ; @PSB6970_CI1
	.comm	_PSB6970_CI1_MASK,4,2           ; @PSB6970_CI1_MASK
	.comm	_PSB6970_CI1_VAL,4,2            ; @PSB6970_CI1_VAL
	.comm	_PSB6970_CI0,4,2                ; @PSB6970_CI0
	.comm	_PSB6970_CI0_MASK,4,2           ; @PSB6970_CI0_MASK
	.no_dead_strip	_psb6970_fixup
.subsections_via_symbols
