	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function devlog_open
_devlog_open:                           ## @devlog_open
	.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	(%rdi), %r12
	cmpq	$0, 16(%r12)
	je	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	24(%r12), %edx
	addl	$16, %edx
	movq	_devlog_seq_ops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	___seq_open_private
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movl	24(%r12), %eax
	sarl	$4, %eax
	movl	%eax, (%r14)
	movl	$0, 4(%r14)
	movq	%r12, %rdi
	callq	_spin_lock
	movl	8(%r12), %esi
	movl	28(%r12), %edx
	movq	16(%r12), %rcx
	movl	24(%r12), %r8d
	movq	8(%r14), %r9
	movq	_T4_MEMORY_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r12, %rdi
	callq	_t4_memory_rw
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_spin_unlock
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.14:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_seq_release_private
	jmp	LBB0_13
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_13:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpl	$0, (%r14)
	je	LBB0_12
## %bb.7:
	movl	$-1, %r12d
	movl	$8, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r15
	movl	(%r14), %eax
	addq	$16, %rbx
	cmpq	%rax, %r15
	jae	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	cmpq	$0, -8(%rax,%rbx)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rax,%rbx), %edi
	callq	_be32_to_cpu
	cmpl	%r12d, %eax
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r15d, 4(%r14)
	movl	%eax, %r12d
	jmp	LBB0_11
LBB0_12:
	xorl	%r13d, %r13d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_devlog_seq_ops,4,2             ## @devlog_seq_ops
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_T4_MEMORY_READ,4,2             ## @T4_MEMORY_READ
	.no_dead_strip	_devlog_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function devlog_open
_devlog_open:                           ; @devlog_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x22, [x0]
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x22, #24]
	add	w2, w8, #16
Lloh0:
	adrp	x1, _devlog_seq_ops@GOTPAGE
Lloh1:
	ldr	x1, [x1, _devlog_seq_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	___seq_open_private
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	w8, [x22, #24]
	asr	w8, w8, #4
	stp	w8, wzr, [x0]
	mov	x0, x22
	bl	_spin_lock
	ldr	w1, [x22, #8]
	ldr	x3, [x22, #16]
	ldp	w4, w2, [x22, #24]
	ldr	x5, [x19, #8]
Lloh2:
	adrp	x8, _T4_MEMORY_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _T4_MEMORY_READ@GOTPAGEOFF]
Lloh4:
	ldr	w6, [x8]
	mov	x0, x22
	bl	_t4_memory_rw
	mov	x23, x0
	mov	x0, x22
	bl	_spin_unlock
	cbz	w23, LBB0_8
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	bl	_seq_release_private
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w8, [x19]
	cbz	w8, LBB0_14
; %bb.9:
	mov	x20, #0
	mov	x21, #0
	mov	w22, #-1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, #1
	ldr	w8, [x19]
	add	x20, x20, #16
	cmp	x21, x8
	b.hs	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x8, x20]
	cbz	x9, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x8, x20
	ldr	w0, [x8, #8]
	bl	_be32_to_cpu
	cmp	w0, w22
	b.ge	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	str	w21, [x19, #4]
	mov	x22, x0
	b	LBB0_10
LBB0_14:
	mov	w23, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_devlog_seq_ops,4,2             ; @devlog_seq_ops
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_T4_MEMORY_READ,4,2             ; @T4_MEMORY_READ
	.no_dead_strip	_devlog_open
.subsections_via_symbols
