	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psb_do_init
_psb_do_init:                           ## @psb_do_init
	.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	8(%rdi), %rbx
	movl	12(%rbx), %eax
	testl	$268435455, %eax                ## imm = 0xFFFFFFF
	je	LBB0_2
## %bb.1:
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_3
LBB0_2:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	16(%rbx), %edx
	sarl	%cl, %edx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	leal	(%rsi,%rdx,4), %edx
	decl	%edx
	sarl	%cl, %edx
	movl	20(%rbx), %esi
	cmpl	%esi, %edx
	cmovgel	%esi, %edx
	shll	%cl, %edx
	shll	$10, %edx
	addl	%eax, %edx
	movl	%edx, (%rbx)
	leaq	8(%rbx), %rdi
	callq	_spin_lock_init
	leaq	4(%rbx), %rdi
	callq	_spin_lock_init
	movq	_PSB_CR_BIF_BANK0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_PSB_WSGX32
	movq	_PSB_CR_BIF_BANK1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%edi, %edi
	callq	_PSB_WSGX32
	movl	(%r15), %edi
	callq	_PSB_RSGX32
	movq	_PSB_CR_BIF_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_PSB_RSGX32
	movq	__PSB_MMU_ER_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movl	(%r15), %esi
	callq	_PSB_WSGX32
	movl	(%r15), %edi
	callq	_PSB_RSGX32
	movq	%rbx, %rdi
	callq	_psb_spank
	movl	24(%rbx), %edi
	movq	_PSB_CR_BIF_TWOD_REQ_BASE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_PSB_WSGX32
	movl	(%rbx), %edi
	callq	_PSB_RSGX32
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Gatt must be 256M aligned. This is a bug.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PSB_CR_BIF_BANK0,4,2           ## @PSB_CR_BIF_BANK0
	.comm	_PSB_CR_BIF_BANK1,4,2           ## @PSB_CR_BIF_BANK1
	.comm	_PSB_CR_BIF_CTRL,4,2            ## @PSB_CR_BIF_CTRL
	.comm	__PSB_MMU_ER_MASK,4,2           ## @_PSB_MMU_ER_MASK
	.comm	_PSB_CR_BIF_TWOD_REQ_BASE,4,2   ## @PSB_CR_BIF_TWOD_REQ_BASE
	.no_dead_strip	_psb_do_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psb_do_init
_psb_do_init:                           ; @psb_do_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0, #8]
	ldr	w8, [x19, #12]
	tst	w8, #0xfffffff
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ldp	w10, w11, [x19, #16]
	asr	w10, w10, w9
Lloh8:
	adrp	x12, _PAGE_SIZE@GOTPAGE
Lloh9:
	ldr	x12, [x12, _PAGE_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w12, [x12]
	add	w10, w12, w10, lsl #2
	sub	w10, w10, #1
	asr	w10, w10, w9
	cmp	w10, w11
	csel	w10, w10, w11, lt
	lsl	w9, w10, w9
	add	w8, w8, w9, lsl #10
	str	w8, [x19]
	add	x0, x19, #8
	bl	_spin_lock_init
	add	x0, x19, #4
	bl	_spin_lock_init
Lloh11:
	adrp	x8, _PSB_CR_BIF_BANK0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PSB_CR_BIF_BANK0@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_PSB_WSGX32
Lloh14:
	adrp	x20, _PSB_CR_BIF_BANK1@GOTPAGE
Lloh15:
	ldr	x20, [x20, _PSB_CR_BIF_BANK1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #0
	bl	_PSB_WSGX32
	ldr	w0, [x20]
	bl	_PSB_RSGX32
Lloh16:
	adrp	x20, _PSB_CR_BIF_CTRL@GOTPAGE
Lloh17:
	ldr	x20, [x20, _PSB_CR_BIF_CTRL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_PSB_RSGX32
Lloh18:
	adrp	x8, __PSB_MMU_ER_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, __PSB_MMU_ER_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	w1, [x20]
	bl	_PSB_WSGX32
	ldr	w0, [x20]
	bl	_PSB_RSGX32
	mov	x0, x19
	bl	_psb_spank
	ldr	w0, [x19, #24]
Lloh21:
	adrp	x19, _PSB_CR_BIF_TWOD_REQ_BASE@GOTPAGE
Lloh22:
	ldr	x19, [x19, _PSB_CR_BIF_TWOD_REQ_BASE@GOTPAGEOFF]
	ldr	w1, [x19]
	bl	_PSB_WSGX32
	ldr	w0, [x19]
	bl	_PSB_RSGX32
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Gatt must be 256M aligned. This is a bug.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PSB_CR_BIF_BANK0,4,2           ; @PSB_CR_BIF_BANK0
	.comm	_PSB_CR_BIF_BANK1,4,2           ; @PSB_CR_BIF_BANK1
	.comm	_PSB_CR_BIF_CTRL,4,2            ; @PSB_CR_BIF_CTRL
	.comm	__PSB_MMU_ER_MASK,4,2           ; @_PSB_MMU_ER_MASK
	.comm	_PSB_CR_BIF_TWOD_REQ_BASE,4,2   ; @PSB_CR_BIF_TWOD_REQ_BASE
	.no_dead_strip	_psb_do_init
.subsections_via_symbols
