	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __get_scom
___get_scom:                            ## @__get_scom
	.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	%rcx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$0, (%rsi)
	movq	_SCOM_READ_CMD@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, %edi
	callq	_cpu_to_be32
	movl	%eax, -28(%rbp)
	movl	(%rbx), %edi
	movq	_SCOM_CMD_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movl	$4, %ecx
	callq	_fsi_device_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	(%rbx), %edi
	movq	_SCOM_STATUS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	$4, %ecx
	callq	_fsi_device_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	(%rbx), %edi
	movq	_SCOM_DATA0_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movl	$4, %ecx
	callq	_fsi_device_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	-28(%rbp), %edi
	callq	_be32_to_cpu
	movl	(%rbx), %edi
	movq	_SCOM_DATA1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movl	$4, %ecx
	callq	_fsi_device_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	-28(%rbp), %edi
	callq	_be32_to_cpu
	orl	%eax, (%r15)
	movl	-32(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCOM_READ_CMD,4,2              ## @SCOM_READ_CMD
	.comm	_SCOM_CMD_REG,4,2               ## @SCOM_CMD_REG
	.comm	_SCOM_STATUS_REG,4,2            ## @SCOM_STATUS_REG
	.comm	_SCOM_DATA0_REG,4,2             ## @SCOM_DATA0_REG
	.comm	_SCOM_DATA1_REG,4,2             ## @SCOM_DATA1_REG
	.no_dead_strip	___get_scom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __get_scom
___get_scom:                            ; @__get_scom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	str	wzr, [x1]
Lloh0:
	adrp	x8, _SCOM_READ_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCOM_READ_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w0, w8, w2
	bl	_cpu_to_be32
	str	w0, [sp, #12]
	ldr	w0, [x21]
Lloh3:
	adrp	x8, _SCOM_CMD_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCOM_CMD_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #4
	bl	_fsi_device_write
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w0, [x21]
Lloh6:
	adrp	x8, _SCOM_STATUS_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCOM_STATUS_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #4
	bl	_fsi_device_read
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x21]
Lloh9:
	adrp	x8, _SCOM_DATA0_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCOM_DATA0_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #4
	bl	_fsi_device_read
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w0, [sp, #12]
	bl	_be32_to_cpu
	ldr	w0, [x21]
Lloh12:
	adrp	x8, _SCOM_DATA1_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SCOM_DATA1_REG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #4
	bl	_fsi_device_read
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w0, [sp, #12]
	bl	_be32_to_cpu
	ldr	w8, [x20]
	orr	w8, w8, w0
	str	w8, [x20]
	ldr	w0, [sp, #8]
	bl	_be32_to_cpu
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SCOM_READ_CMD,4,2              ; @SCOM_READ_CMD
	.comm	_SCOM_CMD_REG,4,2               ; @SCOM_CMD_REG
	.comm	_SCOM_STATUS_REG,4,2            ; @SCOM_STATUS_REG
	.comm	_SCOM_DATA0_REG,4,2             ; @SCOM_DATA0_REG
	.comm	_SCOM_DATA1_REG,4,2             ; @SCOM_DATA1_REG
	.no_dead_strip	___get_scom
.subsections_via_symbols
