	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function units_show
_units_show:                            ## @units_show
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	callq	_fw_device
	movq	%rax, %rbx
	movq	_fw_device_rwsem@GOTPCREL(%rip), %rdi
	callq	_down_read
	movq	(%rbx), %rsi
	addq	$20, %rsi
	leaq	-72(%rbp), %r12
	movq	%r12, %rdi
	callq	_fw_csr_iterator_init
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %r13
	leaq	-52(%rbp), %rbx
	movq	_CSR_UNIT@GOTPCREL(%rip), %r14
	movq	_CSR_DIRECTORY@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_fw_csr_iterator_next
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %eax
	orl	(%r14), %eax
	cmpl	%eax, -56(%rbp)
	jne	LBB0_1
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movslq	%ecx, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rdi
	movq	-72(%rbp), %rax
	movslq	-52(%rbp), %rcx
	leaq	(%rax,%rcx), %rsi
	decq	%rsi
	callq	_units_sprintf
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, %ecx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-18, %eax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpl	%eax, %ecx
	jl	LBB0_1
LBB0_4:
	movq	_fw_device_rwsem@GOTPCREL(%rip), %rdi
	callq	_up_read
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movslq	%eax, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movb	$10, -1(%rdx,%rcx)
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fw_device_rwsem,4,2            ## @fw_device_rwsem
	.comm	_CSR_UNIT,4,2                   ## @CSR_UNIT
	.comm	_CSR_DIRECTORY,4,2              ## @CSR_DIRECTORY
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_units_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function units_show
_units_show:                            ; @units_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	bl	_fw_device
	mov	x20, x0
Lloh0:
	adrp	x0, _fw_device_rwsem@GOTPAGE
Lloh1:
	ldr	x0, [x0, _fw_device_rwsem@GOTPAGEOFF]
	bl	_down_read
	ldr	x8, [x20]
	add	x1, x8, #20
	add	x0, sp, #8
	bl	_fw_csr_iterator_init
	mov	w20, #0
Lloh2:
	adrp	x21, _CSR_UNIT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _CSR_UNIT@GOTPAGEOFF]
Lloh4:
	adrp	x22, _CSR_DIRECTORY@GOTPAGE
Lloh5:
	ldr	x22, [x22, _CSR_DIRECTORY@GOTPAGEOFF]
Lloh6:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	add	x1, sp, #4
	mov	x2, sp
	bl	_fw_csr_iterator_next
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #4]
	ldr	w9, [x21]
	ldr	w10, [x22]
	orr	w9, w10, w9
	cmp	w8, w9
	b.ne	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, x19, w20, sxtw
	ldr	x8, [sp, #8]
	ldrsw	x9, [sp]
	add	x8, x8, x9
	sub	x1, x8, #1
	bl	_units_sprintf
	ldr	w8, [x23]
	sub	w8, w8, #18
	add	w20, w20, w0
	cmp	w20, w8
	b.lt	LBB0_1
LBB0_4:
Lloh8:
	adrp	x0, _fw_device_rwsem@GOTPAGE
Lloh9:
	ldr	x0, [x0, _fw_device_rwsem@GOTPAGEOFF]
	bl	_up_read
	cbz	w20, LBB0_6
; %bb.5:
	add	x8, x19, w20, sxtw
	mov	w9, #10
	sturb	w9, [x8, #-1]
LBB0_6:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_fw_device_rwsem,4,2            ; @fw_device_rwsem
	.comm	_CSR_UNIT,4,2                   ; @CSR_UNIT
	.comm	_CSR_DIRECTORY,4,2              ; @CSR_DIRECTORY
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_units_show
.subsections_via_symbols
