	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssbi_write_bytes
_ssbi_write_bytes:                      ## @ssbi_write_bytes
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	_MSM_SBI_CTRL_SSBI2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_SSBI2_MODE2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_ssbi_readl
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_SET_SSBI_MODE2_REG_ADDR_15_8
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ssbi_writel
LBB0_2:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.3:
	movzbl	%r12b, %r12d
	shll	$16, %r12d
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SSBI_STATUS_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_ssbi_wait_mask
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14,%rbx,4), %esi
	orl	%r12d, %esi
	movq	_SSBI2_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_ssbi_writel
	movq	_SSBI_STATUS_MCHN_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_ssbi_wait_mask
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpl	%ebx, %r15d
	jne	LBB0_4
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSM_SBI_CTRL_SSBI2,8,3         ## @MSM_SBI_CTRL_SSBI2
	.comm	_SSBI2_MODE2,4,2                ## @SSBI2_MODE2
	.comm	_SSBI_STATUS_READY,4,2          ## @SSBI_STATUS_READY
	.comm	_SSBI2_CMD,4,2                  ## @SSBI2_CMD
	.comm	_SSBI_STATUS_MCHN_BUSY,4,2      ## @SSBI_STATUS_MCHN_BUSY
	.no_dead_strip	_ssbi_write_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssbi_write_bytes
_ssbi_write_bytes:                      ; @ssbi_write_bytes
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MSM_SBI_CTRL_SSBI2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MSM_SBI_CTRL_SSBI2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x23, _SSBI2_MODE2@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SSBI2_MODE2@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_ssbi_readl
	mov	x1, x22
	bl	_SET_SSBI_MODE2_REG_ADDR_15_8
	mov	x1, x0
	ldr	w2, [x23]
	mov	x0, x21
	bl	_ssbi_writel
LBB0_2:
	cbz	w19, LBB0_7
; %bb.3:
	ubfiz	w22, w22, #16, #8
Lloh5:
	adrp	x23, _SSBI_STATUS_READY@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SSBI_STATUS_READY@GOTPAGEOFF]
Lloh7:
	adrp	x24, _SSBI2_CMD@GOTPAGE
Lloh8:
	ldr	x24, [x24, _SSBI2_CMD@GOTPAGEOFF]
Lloh9:
	adrp	x25, _SSBI_STATUS_MCHN_BUSY@GOTPAGE
Lloh10:
	ldr	x25, [x25, _SSBI_STATUS_MCHN_BUSY@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x21
	mov	w2, #0
	bl	_ssbi_wait_mask
	cbnz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	orr	w1, w8, w22
	ldr	w2, [x24]
	mov	x0, x21
	bl	_ssbi_writel
	ldr	w2, [x25]
	mov	x0, x21
	mov	w1, #0
	bl	_ssbi_wait_mask
	cbnz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #4
	subs	w19, w19, #1
	b.ne	LBB0_4
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MSM_SBI_CTRL_SSBI2,8,3         ; @MSM_SBI_CTRL_SSBI2
	.comm	_SSBI2_MODE2,4,2                ; @SSBI2_MODE2
	.comm	_SSBI_STATUS_READY,4,2          ; @SSBI_STATUS_READY
	.comm	_SSBI2_CMD,4,2                  ; @SSBI2_CMD
	.comm	_SSBI_STATUS_MCHN_BUSY,4,2      ; @SSBI_STATUS_MCHN_BUSY
	.no_dead_strip	_ssbi_write_bytes
.subsections_via_symbols
