	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_read_sysfs_file            ## -- Begin function ibv_read_sysfs_file
	.p2align	4, 0x90
_ibv_read_sysfs_file:                   ## @ibv_read_sysfs_file
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rcx
	movq	%rdi, %rdx
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdi
	callq	_asprintf
	movl	$-1, %r12d
	testq	%rax, %rax
	js	LBB0_11
## %bb.1:
	movq	-40(%rbp), %rax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movb	$46, (%rax)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	cmpb	$47, %cl
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%cl, %cl
	jne	LBB0_8
## %bb.4:
	movq	%r15, -48(%rbp)
	movq	-40(%rbp), %rdi
	incq	%rdi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	movl	%eax, %ebx
	movq	-40(%rbp), %rdi
	callq	_free
	cmpl	$-1, %ebx
	je	LBB0_11
## %bb.5:
	movq	-48(%rbp), %r12
	testq	%r12, %r12
	je	LBB0_6
## %bb.9:
	cmpb	$10, -1(%r14,%r12)
	jne	LBB0_11
## %bb.10:
	decq	%r12
	movb	$0, (%r14,%r12)
	jmp	LBB0_11
LBB0_6:
	xorl	%r12d, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_read_sysfs_file            ; -- Begin function ibv_read_sysfs_file
	.p2align	2
_ibv_read_sysfs_file:                   ; @ibv_read_sysfs_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x3, x1
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_asprintf
	tbnz	x0, #63, LBB0_10
; %bb.1:
	ldr	x8, [sp, #8]
	mov	w9, #46
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	strb	w9, [x8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8]
	cmp	w10, #47
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w10, LBB0_3
; %bb.6:
	str	x20, [sp]
	ldr	x8, [sp, #8]
	add	x0, x8, #1
	mov	x2, sp
	mov	x1, x19
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_free
	cmn	w20, #1
	b.eq	LBB0_10
; %bb.7:
	ldr	x0, [sp]
	cbz	x0, LBB0_11
; %bb.8:
	sub	x8, x0, #1
	ldrb	w9, [x19, x8]
	cmp	w9, #10
	b.ne	LBB0_11
; %bb.9:
	strb	wzr, [x19, x8]
	mov	x0, x8
	b	LBB0_11
LBB0_10:
	mov	w0, #-1
LBB0_11:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

.subsections_via_symbols
