	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function irnet_read_discovery_log
_irnet_read_discovery_log:              ## @irnet_read_discovery_log
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	_CTRL_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_DENTER
	movl	(%rbx), %ecx
	cmpl	$-1, %ecx
	je	LBB0_1
## %bb.2:
	cmpq	$0, 16(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_irnet_get_discovery_log
	movl	(%rbx), %ecx
LBB0_4:
	movq	8(%rbx), %rax
	movslq	%ecx, %rcx
	xorl	%r14d, %r14d
	cmpq	%rcx, %rax
	jae	LBB0_6
## %bb.5:
	movq	16(%rbx), %rsi
	shlq	$5, %rax
	movl	(%rsi,%rax), %edx
	movq	8(%rsi,%rax), %rcx
	movl	16(%rsi,%rax), %r8d
	movq	24(%rsi,%rax), %rax
	movl	(%rax), %r9d
	movl	4(%rax), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_sprintf
	movq	_CTRL_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rax
	movq	%rdx, %rcx
	shlq	$5, %rcx
	movq	8(%rax,%rcx), %rcx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_DEBUG
	movq	8(%rbx), %rax
	incq	%rax
	movq	%rax, 8(%rbx)
	movslq	(%rbx), %rcx
	movl	$1, %r14d
LBB0_6:
	cmpq	%rcx, %rax
	jb	LBB0_10
## %bb.7:
	movq	_CTRL_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%rbx), %rdx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_DEBUG
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_kfree
	movq	$0, 16(%rbx)
LBB0_9:
	movl	$-1, (%rbx)
	jmp	LBB0_10
LBB0_1:
	movq	_CTRL_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DEBUG
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL_TRACE,4,2                 ## @CTRL_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(ap=0x%p, event=0x%p)\n"

	.comm	_CTRL_INFO,4,2                  ## @CTRL_INFO
L_.str.1:                               ## @.str.1
	.asciz	"Already done\n"

L_.str.2:                               ## @.str.2
	.asciz	"Found %08x (%s) behind %08x {hints %02X-%02X}\n"

L_.str.3:                               ## @.str.3
	.asciz	"Writing discovery %d : %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"Cleaning up log (0x%p)\n"

	.no_dead_strip	_irnet_read_discovery_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function irnet_read_discovery_log
_irnet_read_discovery_log:              ; @irnet_read_discovery_log
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CTRL_TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTRL_TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_DENTER
	ldr	w9, [x19]
	cmn	w9, #1
	b.eq	LBB0_5
; %bb.1:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_irnet_get_discovery_log
	ldr	w9, [x19]
LBB0_3:
	ldr	x8, [x19, #8]
	sxtw	x9, w9
	cmp	x8, x9
	b.hs	LBB0_6
; %bb.4:
	ldr	x9, [x19, #16]
	add	x8, x9, x8, lsl #5
	ldr	w2, [x8]
	ldr	x3, [x8, #8]
	ldr	w4, [x8, #16]
	ldr	x8, [x8, #24]
	ldp	w5, w6, [x8]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_sprintf
Lloh7:
	adrp	x8, _CTRL_INFO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CTRL_INFO@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldp	x8, x9, [x19, #8]
	add	x9, x9, x8, lsl #5
	ldr	x9, [x9, #8]
	stp	x8, x9, [sp]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DEBUG
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	ldrsw	x9, [x19]
	mov	w20, #1
	cmp	x8, x9
	b.hs	LBB0_7
	b	LBB0_10
LBB0_5:
Lloh12:
	adrp	x8, _CTRL_INFO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CTRL_INFO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DEBUG
	mov	w20, #0
	b	LBB0_10
LBB0_6:
	mov	w20, #0
	cmp	x8, x9
	b.lo	LBB0_10
LBB0_7:
Lloh17:
	adrp	x8, _CTRL_INFO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CTRL_INFO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_DEBUG
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_kfree
	str	xzr, [x19, #16]
LBB0_9:
	mov	w8, #-1
	str	w8, [x19]
LBB0_10:
	mov	x0, x20
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL_TRACE,4,2                 ; @CTRL_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(ap=0x%p, event=0x%p)\n"

	.comm	_CTRL_INFO,4,2                  ; @CTRL_INFO
l_.str.1:                               ; @.str.1
	.asciz	"Already done\n"

l_.str.2:                               ; @.str.2
	.asciz	"Found %08x (%s) behind %08x {hints %02X-%02X}\n"

l_.str.3:                               ; @.str.3
	.asciz	"Writing discovery %d : %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"Cleaning up log (0x%p)\n"

	.no_dead_strip	_irnet_read_discovery_log
.subsections_via_symbols
