	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_indirect_scom_form0
_put_indirect_scom_form0:               ## @put_indirect_scom_form0
	.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	_XSCOM_DATA_IND_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%esi, %eax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_2:
	movq	%rcx, %r12
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	_XSCOM_ADDR_DIRECT_PART@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r14d, %edx
	movq	_XSCOM_ADDR_INDIRECT_PART@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	orl	%esi, %eax
	movl	%eax, -44(%rbp)
	movl	%eax, %esi
	callq	___put_scom
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_SCOM_STATUS_ANY_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, (%r12)
	jne	LBB0_12
## %bb.4:
	movq	_SCOM_MAX_IND_RETRIES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_12
## %bb.5:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	leaq	-44(%rbp), %rsi
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	___get_scom
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_SCOM_STATUS_ANY_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, (%r12)
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %edx
	movq	_XSCOM_DATA_IND_ERR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	movq	_XSCOM_DATA_IND_ERR_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %eax
	movq	_SCOM_STATUS_PIB_RESP_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movl	%eax, %esi
	shll	%cl, %esi
	movl	%esi, (%r12)
	movq	_XSCOM_DATA_IND_COMPLETE@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_SCOM_PIB_BLOCKED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	callq	_msleep
	incl	%r13d
	movq	_SCOM_MAX_IND_RETRIES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jl	LBB0_6
	jmp	LBB0_12
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_XSCOM_DATA_IND_DATA,4,2        ## @XSCOM_DATA_IND_DATA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_XSCOM_ADDR_DIRECT_PART,4,2     ## @XSCOM_ADDR_DIRECT_PART
	.comm	_XSCOM_ADDR_INDIRECT_PART,4,2   ## @XSCOM_ADDR_INDIRECT_PART
	.comm	_SCOM_STATUS_ANY_ERR,4,2        ## @SCOM_STATUS_ANY_ERR
	.comm	_SCOM_MAX_IND_RETRIES,4,2       ## @SCOM_MAX_IND_RETRIES
	.comm	_XSCOM_DATA_IND_ERR_MASK,4,2    ## @XSCOM_DATA_IND_ERR_MASK
	.comm	_XSCOM_DATA_IND_ERR_SHIFT,4,2   ## @XSCOM_DATA_IND_ERR_SHIFT
	.comm	_SCOM_STATUS_PIB_RESP_SHIFT,4,2 ## @SCOM_STATUS_PIB_RESP_SHIFT
	.comm	_XSCOM_DATA_IND_COMPLETE,4,2    ## @XSCOM_DATA_IND_COMPLETE
	.comm	_SCOM_PIB_BLOCKED,4,2           ## @SCOM_PIB_BLOCKED
	.no_dead_strip	_put_indirect_scom_form0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_indirect_scom_form0
_put_indirect_scom_form0:               ; @put_indirect_scom_form0
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _XSCOM_DATA_IND_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XSCOM_DATA_IND_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bics	wzr, w1, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
Lloh6:
	adrp	x8, _XSCOM_ADDR_DIRECT_PART@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XSCOM_ADDR_DIRECT_PART@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w2, w8, w2
Lloh9:
	adrp	x8, _XSCOM_ADDR_INDIRECT_PART@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XSCOM_ADDR_INDIRECT_PART@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w20
	orr	w1, w8, w1
	str	w1, [sp, #12]
	bl	___put_scom
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w8, [x19]
Lloh12:
	adrp	x22, _SCOM_STATUS_ANY_ERR@GOTPAGE
Lloh13:
	ldr	x22, [x22, _SCOM_STATUS_ANY_ERR@GOTPAGEOFF]
	ldr	w9, [x22]
	and	w8, w9, w8
Lloh14:
	adrp	x23, _SCOM_MAX_IND_RETRIES@GOTPAGE
Lloh15:
	ldr	x23, [x23, _SCOM_MAX_IND_RETRIES@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, #0
	ccmp	w9, #1, #8, eq
	b.ge	LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	mov	w24, #0
Lloh16:
	adrp	x26, _XSCOM_DATA_IND_ERR_SHIFT@GOTPAGE
Lloh17:
	ldr	x26, [x26, _XSCOM_DATA_IND_ERR_SHIFT@GOTPAGEOFF]
Lloh18:
	adrp	x27, _SCOM_STATUS_PIB_RESP_SHIFT@GOTPAGE
Lloh19:
	ldr	x27, [x27, _SCOM_STATUS_PIB_RESP_SHIFT@GOTPAGEOFF]
Lloh20:
	adrp	x28, _XSCOM_DATA_IND_COMPLETE@GOTPAGE
Lloh21:
	ldr	x28, [x28, _XSCOM_DATA_IND_COMPLETE@GOTPAGEOFF]
Lloh22:
	adrp	x25, _SCOM_PIB_BLOCKED@GOTPAGE
Lloh23:
	ldr	x25, [x25, _SCOM_PIB_BLOCKED@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	___get_scom
	cbnz	w0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #12]
Lloh24:
	adrp	x9, _XSCOM_DATA_IND_ERR_MASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _XSCOM_DATA_IND_ERR_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	and	w9, w9, w8
	ldr	w10, [x26]
	asr	w9, w9, w10
	ldr	w10, [x27]
	lsl	w10, w9, w10
	str	w10, [x19]
	ldr	w10, [x28]
	and	w8, w10, w8
	ldr	w10, [x25]
	cmp	w8, #0
	ccmp	w9, w10, #0, eq
	b.ne	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #1
	bl	_msleep
	mov	w0, #0
	add	w24, w24, #1
	ldr	w8, [x23]
	cmp	w24, w8
	b.lt	LBB0_7
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_XSCOM_DATA_IND_DATA,4,2        ; @XSCOM_DATA_IND_DATA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_XSCOM_ADDR_DIRECT_PART,4,2     ; @XSCOM_ADDR_DIRECT_PART
	.comm	_XSCOM_ADDR_INDIRECT_PART,4,2   ; @XSCOM_ADDR_INDIRECT_PART
	.comm	_SCOM_STATUS_ANY_ERR,4,2        ; @SCOM_STATUS_ANY_ERR
	.comm	_SCOM_MAX_IND_RETRIES,4,2       ; @SCOM_MAX_IND_RETRIES
	.comm	_XSCOM_DATA_IND_ERR_MASK,4,2    ; @XSCOM_DATA_IND_ERR_MASK
	.comm	_XSCOM_DATA_IND_ERR_SHIFT,4,2   ; @XSCOM_DATA_IND_ERR_SHIFT
	.comm	_SCOM_STATUS_PIB_RESP_SHIFT,4,2 ; @SCOM_STATUS_PIB_RESP_SHIFT
	.comm	_XSCOM_DATA_IND_COMPLETE,4,2    ; @XSCOM_DATA_IND_COMPLETE
	.comm	_SCOM_PIB_BLOCKED,4,2           ; @SCOM_PIB_BLOCKED
	.no_dead_strip	_put_indirect_scom_form0
.subsections_via_symbols
