	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_srom
_read_srom:                             ## @read_srom
	.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	%rdi, %r14
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	movl	%edx, %ebx
	movl	%esi, %r15d
	decl	%ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%esi, %esi
	btl	%ebx, %r15d
	setb	%sil
	movq	%r14, %rdi
	callq	_bmac_clock_in_bit
	addl	$-1, %ebx
	jb	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_bmac_clock_out_bit
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_bmac_clock_out_bit
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_bmac_clock_out_bit
                                        ## kill: def $ax killed $ax def $eax
	shll	$2, %r15d
	addl	%ebx, %ebx
	orl	%r15d, %ebx
	orl	%eax, %ebx
	movq	%r14, %rdi
	callq	_bmac_clock_out_bit
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_bmac_clock_out_bit
                                        ## kill: def $ax killed $ax def $eax
	shll	$2, %ebx
	addl	%r15d, %r15d
	orl	%eax, %r15d
	orl	%ebx, %r15d
	movq	%r14, %rdi
	callq	_bmac_clock_out_bit
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_bmac_clock_out_bit
                                        ## kill: def $ax killed $ax def $eax
	shll	$2, %r15d
	addl	%ebx, %ebx
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	%r14, %rdi
	callq	_bmac_clock_out_bit
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_bmac_clock_out_bit
                                        ## kill: def $ax killed $ax def $eax
	shll	$2, %ebx
	addl	%r15d, %r15d
	orl	%eax, %r15d
	orl	%ebx, %r15d
	movq	%r14, %rdi
	callq	_bmac_clock_out_bit
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_bmac_clock_out_bit
                                        ## kill: def $ax killed $ax def $eax
	shll	$2, %r15d
	addl	%ebx, %ebx
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	%r14, %rdi
	callq	_bmac_clock_out_bit
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_bmac_clock_out_bit
                                        ## kill: def $ax killed $ax def $eax
	shll	$2, %ebx
	addl	%r15d, %r15d
	orl	%eax, %r15d
	orl	%ebx, %r15d
	movq	%r14, %rdi
	callq	_bmac_clock_out_bit
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_bmac_clock_out_bit
                                        ## kill: def $ax killed $ax def $eax
	shll	$2, %r15d
	addl	%ebx, %ebx
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	%r14, %rdi
	callq	_bmac_clock_out_bit
                                        ## kill: def $ax killed $ax def $eax
	addl	%ebx, %ebx
	orl	%eax, %ebx
	movq	_SROMCSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_bmwrite
	movzwl	%bx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SROMCSR,4,2                    ## @SROMCSR
	.no_dead_strip	_read_srom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_srom
_read_srom:                             ; @read_srom
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	cbz	w2, LBB0_3
; %bb.1:
	mov	x20, x1
	sub	w21, w2, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w20, w21
	and	w1, w8, #0x1
	mov	x0, x19
	bl	_bmac_clock_in_bit
	sub	w21, w21, #1
	cmn	w21, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_bmac_clock_out_bit
	mov	x20, x0
	mov	x0, x19
	bl	_bmac_clock_out_bit
	mov	x21, x0
	mov	x0, x19
	bl	_bmac_clock_out_bit
	lsl	w8, w20, #2
	orr	w8, w8, w21, lsl #1
	orr	w21, w0, w8
	mov	x0, x19
	bl	_bmac_clock_out_bit
	mov	x20, x0
	mov	x0, x19
	bl	_bmac_clock_out_bit
	lsl	w8, w21, #2
	orr	w8, w8, w20, lsl #1
	orr	w21, w0, w8
	mov	x0, x19
	bl	_bmac_clock_out_bit
	mov	x20, x0
	mov	x0, x19
	bl	_bmac_clock_out_bit
	lsl	w8, w21, #2
	orr	w8, w8, w20, lsl #1
	orr	w21, w0, w8
	mov	x0, x19
	bl	_bmac_clock_out_bit
	mov	x20, x0
	mov	x0, x19
	bl	_bmac_clock_out_bit
	lsl	w8, w21, #2
	orr	w8, w8, w20, lsl #1
	orr	w21, w0, w8
	mov	x0, x19
	bl	_bmac_clock_out_bit
	mov	x20, x0
	mov	x0, x19
	bl	_bmac_clock_out_bit
	lsl	w8, w21, #2
	orr	w8, w8, w20, lsl #1
	orr	w21, w0, w8
	mov	x0, x19
	bl	_bmac_clock_out_bit
	mov	x20, x0
	mov	x0, x19
	bl	_bmac_clock_out_bit
	lsl	w8, w21, #2
	orr	w8, w8, w20, lsl #1
	orr	w21, w0, w8
	mov	x0, x19
	bl	_bmac_clock_out_bit
	mov	x20, x0
	mov	x0, x19
	bl	_bmac_clock_out_bit
	lsl	w8, w21, #2
	orr	w8, w8, w20, lsl #1
	orr	w20, w0, w8
	mov	x0, x19
	bl	_bmac_clock_out_bit
	orr	w20, w0, w20, lsl #1
Lloh0:
	adrp	x8, _SROMCSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SROMCSR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_bmwrite
	and	w0, w20, #0xffff
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SROMCSR,4,2                    ; @SROMCSR
	.no_dead_strip	_read_srom
.subsections_via_symbols
