	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function irnet_get_discovery_log
_irnet_get_discovery_log:               ## @irnet_get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_S_LAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_irlmp_service_to_hint
	movq	_DISCOVERY_DEFAULT_SLOTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_irlmp_get_discoveries
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %ecx
	jmp	LBB0_3
LBB0_2:
	movl	$-1, (%rbx)
	movl	$-1, %ecx
LBB0_3:
	movq	_CTRL_INFO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DEBUG                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S_LAN,4,2                      ## @S_LAN
	.comm	_DISCOVERY_DEFAULT_SLOTS,4,2    ## @DISCOVERY_DEFAULT_SLOTS
	.comm	_CTRL_INFO,4,2                  ## @CTRL_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Got the log (0x%p), size is %d\n"

	.no_dead_strip	_irnet_get_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_get_discovery_log
_irnet_get_discovery_log:               ; @irnet_get_discovery_log
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _S_LAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_LAN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_irlmp_service_to_hint
	mov	x1, x0
Lloh3:
	adrp	x8, _DISCOVERY_DEFAULT_SLOTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DISCOVERY_DEFAULT_SLOTS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_irlmp_get_discoveries
	mov	x2, x0
	str	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w3, [x19]
	b	LBB0_3
LBB0_2:
	mov	w3, #-1
	str	w3, [x19]
LBB0_3:
Lloh6:
	adrp	x8, _CTRL_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CTRL_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DEBUG
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_S_LAN,4,2                      ; @S_LAN
	.comm	_DISCOVERY_DEFAULT_SLOTS,4,2    ; @DISCOVERY_DEFAULT_SLOTS
	.comm	_CTRL_INFO,4,2                  ; @CTRL_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Got the log (0x%p), size is %d\n"

	.no_dead_strip	_irnet_get_discovery_log
.subsections_via_symbols
