	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function irnet_discover_daddr_and_lsap_sel
_irnet_discover_daddr_and_lsap_sel:     ## @irnet_discover_daddr_and_lsap_sel
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_IRDA_SR_TRACE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_DENTER
	movl	36(%rbx), %esi
	movq	_DISCOVERY_DEFAULT_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_irlmp_get_discoveries
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	$-1, (%rbx)
	leaq	8(%rbx), %rsi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_clear_bit
	movq	_ENETUNREACH@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	_IRDA_SR_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%r14d, %edi
	callq	_DRETURN
	movq	16(%rbx), %rax
LBB0_2:
	movq	_IRDA_SR_INFO@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%rbx), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	callq	_DEBUG
	movl	$-1, 4(%rbx)
	movq	_DEV_ADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%rbx, %rdi
	callq	_irnet_discover_next_daddr
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_iriap_close
LBB0_5:
	movq	$0, 24(%rbx)
	movq	16(%rbx), %rdi
	callq	_kfree
	movq	$0, 16(%rbx)
	addq	$8, %rbx
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_ENETUNREACH@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	(%r12), %esi
	leaq	L_.str.3(%rip), %rdx
	movl	%r14d, %edi
	callq	_DRETURN
LBB0_6:
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_DEXIT
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRDA_SR_TRACE,4,2              ## @IRDA_SR_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(self=0x%p)\n"

	.comm	_DISCOVERY_DEFAULT_SLOTS,4,2    ## @DISCOVERY_DEFAULT_SLOTS
	.comm	_ENETUNREACH,4,2                ## @ENETUNREACH
	.comm	_IRDA_SR_INFO,4,2               ## @IRDA_SR_INFO
L_.str.1:                               ## @.str.1
	.asciz	"No Cachelog...\n"

L_.str.2:                               ## @.str.2
	.asciz	"Got the log (0x%p), size is %d\n"

	.comm	_DEV_ADDR_ANY,4,2               ## @DEV_ADDR_ANY
L_.str.3:                               ## @.str.3
	.asciz	"Cachelog empty...\n"

L_.str.4:                               ## @.str.4
	.asciz	"\n"

	.no_dead_strip	_irnet_discover_daddr_and_lsap_sel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function irnet_discover_daddr_and_lsap_sel
_irnet_discover_daddr_and_lsap_sel:     ; @irnet_discover_daddr_and_lsap_sel
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x20, _IRDA_SR_TRACE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IRDA_SR_TRACE@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_DENTER
	ldr	w1, [x19, #36]
Lloh4:
	adrp	x8, _DISCOVERY_DEFAULT_SLOTS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DISCOVERY_DEFAULT_SLOTS@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_irlmp_get_discoveries
	mov	x2, x0
	str	x0, [x19, #16]
Lloh7:
	adrp	x22, _ENETUNREACH@GOTPAGE
Lloh8:
	ldr	x22, [x22, _ENETUNREACH@GOTPAGEOFF]
Lloh9:
	adrp	x21, _IRDA_SR_INFO@GOTPAGE
Lloh10:
	ldr	x21, [x21, _IRDA_SR_INFO@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
	mov	w8, #-1
	str	w8, [x19]
	add	x1, x19, #8
	bl	_clear_bit
	ldr	w8, [x22]
	neg	w0, w8
	ldr	w1, [x21]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_DRETURN
	ldr	x2, [x19, #16]
LBB0_2:
	ldr	w0, [x21]
	ldr	w3, [x19]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DEBUG
	mov	w8, #-1
	str	w8, [x19, #4]
Lloh15:
	adrp	x8, _DEV_ADDR_ANY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DEV_ADDR_ANY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	mov	x0, x19
	bl	_irnet_discover_next_daddr
	cbz	w0, LBB0_6
; %bb.3:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_iriap_close
LBB0_5:
	str	xzr, [x19, #24]
	ldr	x0, [x19, #16]
	bl	_kfree
	str	xzr, [x19, #16]
	add	x1, x19, #8
	mov	w0, #0
	bl	_clear_bit
	ldr	w8, [x22]
	neg	w0, w8
	ldr	w1, [x21]
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_DRETURN
LBB0_6:
	ldr	w0, [x20]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_DEXIT
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IRDA_SR_TRACE,4,2              ; @IRDA_SR_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(self=0x%p)\n"

	.comm	_DISCOVERY_DEFAULT_SLOTS,4,2    ; @DISCOVERY_DEFAULT_SLOTS
	.comm	_ENETUNREACH,4,2                ; @ENETUNREACH
	.comm	_IRDA_SR_INFO,4,2               ; @IRDA_SR_INFO
l_.str.1:                               ; @.str.1
	.asciz	"No Cachelog...\n"

l_.str.2:                               ; @.str.2
	.asciz	"Got the log (0x%p), size is %d\n"

	.comm	_DEV_ADDR_ANY,4,2               ; @DEV_ADDR_ANY
l_.str.3:                               ; @.str.3
	.asciz	"Cachelog empty...\n"

l_.str.4:                               ; @.str.4
	.asciz	"\n"

	.no_dead_strip	_irnet_discover_daddr_and_lsap_sel
.subsections_via_symbols
