	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssbi_pa_transfer
_ssbi_pa_transfer:                      ## @ssbi_pa_transfer
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_SSBI_TIMEOUT_US@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SSBI_PA_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ssbi_writel
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.1:
	movq	_SSBI_PA_RD_STATUS@GOTPCREL(%rip), %r12
	movq	_SSBI_PA_RD_STATUS_TRANS_DENIED@GOTPCREL(%rip), %r13
	movq	_SSBI_PA_RD_STATUS_TRANS_DONE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_ssbi_readl
	testl	%eax, (%r13)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	testl	%eax, (%r14)
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%ebx
	movl	$1, %edi
	callq	_udelay
	testl	%ebx, %ebx
	jne	LBB0_2
LBB0_8:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_3:
	movq	_EPERM@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.6:
	movzbl	%cl, %ecx
	movl	%ecx, (%rdx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SSBI_TIMEOUT_US,4,2            ## @SSBI_TIMEOUT_US
	.comm	_SSBI_PA_CMD,4,2                ## @SSBI_PA_CMD
	.comm	_SSBI_PA_RD_STATUS,4,2          ## @SSBI_PA_RD_STATUS
	.comm	_SSBI_PA_RD_STATUS_TRANS_DENIED,4,2 ## @SSBI_PA_RD_STATUS_TRANS_DENIED
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_SSBI_PA_RD_STATUS_TRANS_DONE,4,2 ## @SSBI_PA_RD_STATUS_TRANS_DONE
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_ssbi_pa_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssbi_pa_transfer
_ssbi_pa_transfer:                      ; @ssbi_pa_transfer
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _SSBI_TIMEOUT_US@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSBI_TIMEOUT_US@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _SSBI_PA_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSBI_PA_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_ssbi_writel
	cbz	w21, LBB0_5
; %bb.1:
Lloh6:
	adrp	x22, _SSBI_PA_RD_STATUS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SSBI_PA_RD_STATUS@GOTPAGEOFF]
Lloh8:
	adrp	x23, _SSBI_PA_RD_STATUS_TRANS_DENIED@GOTPAGE
Lloh9:
	ldr	x23, [x23, _SSBI_PA_RD_STATUS_TRANS_DENIED@GOTPAGEOFF]
Lloh10:
	adrp	x24, _SSBI_PA_RD_STATUS_TRANS_DONE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _SSBI_PA_RD_STATUS_TRANS_DONE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_ssbi_readl
	ldr	w9, [x23]
	tst	w9, w0
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x0
	ldr	w9, [x24]
	tst	w9, w0
	b.ne	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w21, w21, #1
	mov	w0, #1
	bl	_udelay
	cbnz	w21, LBB0_2
LBB0_5:
Lloh12:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _EPERM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w0, #0
	cbz	x19, LBB0_8
; %bb.10:
	and	w8, w8, #0xff
	str	w8, [x19]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SSBI_TIMEOUT_US,4,2            ; @SSBI_TIMEOUT_US
	.comm	_SSBI_PA_CMD,4,2                ; @SSBI_PA_CMD
	.comm	_SSBI_PA_RD_STATUS,4,2          ; @SSBI_PA_RD_STATUS
	.comm	_SSBI_PA_RD_STATUS_TRANS_DENIED,4,2 ; @SSBI_PA_RD_STATUS_TRANS_DENIED
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_SSBI_PA_RD_STATUS_TRANS_DONE,4,2 ; @SSBI_PA_RD_STATUS_TRANS_DONE
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_ssbi_pa_transfer
.subsections_via_symbols
