	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function irnet_discover_next_daddr
_irnet_discover_next_daddr:             ## @irnet_discover_next_daddr
	.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	24(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_iriap_close
	movq	$0, 24(%rbx)
LBB0_2:
	movq	_LSAP_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IAS_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_irnet_discovervalue_confirm@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdx
	callq	_iriap_open
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rsi
	leaq	1(%rsi), %rdx
	movq	%rdx, (%rbx)
	movl	$1, %ecx
	cmpq	8(%rbx), %rdx
	jae	LBB0_6
## %bb.5:
	movq	16(%rbx), %rcx
	movl	8(%rcx,%rsi,8), %edx
	movl	12(%rcx,%rsi,8), %esi
	movq	_IRNET_SERVICE_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IRNET_IAS_VALUE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
	movq	%rax, %rdi
	callq	_iriap_getvaluebyclass_request
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_6:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LSAP_ANY,4,2                   ## @LSAP_ANY
	.comm	_IAS_CLIENT,4,2                 ## @IAS_CLIENT
	.comm	_irnet_discovervalue_confirm,4,2 ## @irnet_discovervalue_confirm
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IRNET_SERVICE_NAME,4,2         ## @IRNET_SERVICE_NAME
	.comm	_IRNET_IAS_VALUE,4,2            ## @IRNET_IAS_VALUE
	.no_dead_strip	_irnet_discover_next_daddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function irnet_discover_next_daddr
_irnet_discover_next_daddr:             ; @irnet_discover_next_daddr
	.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
	ldr	x0, [x0, #24]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_iriap_close
	str	xzr, [x19, #24]
LBB0_2:
Lloh0:
	adrp	x8, _LSAP_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LSAP_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _IAS_CLIENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IAS_CLIENT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _irnet_discovervalue_confirm@GOTPAGE
Lloh7:
	ldr	x8, [x8, _irnet_discovervalue_confirm@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x2, x19
	bl	_iriap_open
	str	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.3:
	ldp	x8, x9, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	cmp	x8, x9
	b.hs	LBB0_6
; %bb.4:
	ldr	x9, [x19, #16]
	add	x8, x9, x8, lsl #3
	ldp	w2, w1, [x8]
Lloh9:
	adrp	x8, _IRNET_SERVICE_NAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRNET_SERVICE_NAME@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x8, _IRNET_IAS_VALUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRNET_IAS_VALUE@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	bl	_iriap_getvaluebyclass_request
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LSAP_ANY,4,2                   ; @LSAP_ANY
	.comm	_IAS_CLIENT,4,2                 ; @IAS_CLIENT
	.comm	_irnet_discovervalue_confirm,4,2 ; @irnet_discovervalue_confirm
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IRNET_SERVICE_NAME,4,2         ; @IRNET_SERVICE_NAME
	.comm	_IRNET_IAS_VALUE,4,2            ; @IRNET_IAS_VALUE
	.no_dead_strip	_irnet_discover_next_daddr
.subsections_via_symbols
