	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function irnet_daddr_to_dname
_irnet_daddr_to_dname:                  ## @irnet_daddr_to_dname
	.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	%rdi, %r14
	movq	_IRDA_SERV_TRACE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_DENTER
	movq	_DISCOVERY_DEFAULT_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_irlmp_get_discoveries
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_ENETUNREACH@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	movq	_IRDA_SERV_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_DRETURN
LBB0_2:
	movl	-28(%rbp), %eax
	movq	(%r14), %rdx
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	shlq	$4, %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rbx,%rcx)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_4
LBB0_7:
	movq	_IRDA_SERV_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DEXIT
	movq	%rbx, %rdi
	callq	_kfree
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_5:
	movq	8(%r14), %rdi
	movl	8(%rbx,%rcx), %esi
	movl	$8, %edx
	callq	_strlcpy
	movq	8(%r14), %rax
	movb	$0, 7(%rax)
	movq	_IRDA_SERV_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	movq	8(%r14), %rcx
	leaq	L_.str.2(%rip), %rsi
	callq	_DEBUG
	movq	%rbx, %rdi
	callq	_kfree
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DEXIT
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRDA_SERV_TRACE,4,2            ## @IRDA_SERV_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_SERV_INFO,4,2             ## @IRDA_SERV_INFO
L_.str.1:                               ## @.str.1
	.asciz	"Cachelog empty...\n"

L_.str.2:                               ## @.str.2
	.asciz	"Device 0x%08x is in fact ``%s''.\n"

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

L_.str.4:                               ## @.str.4
	.asciz	": cannot discover device 0x%08x !!!\n"

	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.no_dead_strip	_irnet_daddr_to_dname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function irnet_daddr_to_dname
_irnet_daddr_to_dname:                  ; @irnet_daddr_to_dname
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x21, _IRDA_SERV_TRACE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IRDA_SERV_TRACE@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DENTER
Lloh4:
	adrp	x8, _DISCOVERY_DEFAULT_SLOTS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DISCOVERY_DEFAULT_SLOTS@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	w1, #65535
	bl	_irlmp_get_discoveries
	mov	x19, x0
Lloh7:
	adrp	x22, _IRDA_SERV_INFO@GOTPAGE
Lloh8:
	ldr	x22, [x22, _IRDA_SERV_INFO@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _ENETUNREACH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENETUNREACH@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ldr	w1, [x22]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_DRETURN
LBB0_2:
	ldr	w10, [sp, #12]
	ldr	x8, [x20]
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x9, #0
	lsl	x10, x10, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x19, x9]
	cmp	x11, x8
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #16
	cmp	x10, x9
	b.ne	LBB0_4
LBB0_6:
	ldr	w0, [x22]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_DEXIT
	mov	x0, x19
	bl	_kfree
Lloh16:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	ldr	x0, [x20, #8]
	add	x8, x19, x9
	ldr	w1, [x8, #8]
	mov	w2, #8
	bl	_strlcpy
	ldr	x8, [x20, #8]
	strb	wzr, [x8, #7]
	ldr	w0, [x22]
	ldp	x2, x3, [x20]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DEBUG
	mov	x0, x19
	bl	_kfree
	ldr	w0, [x21]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DEXIT
	mov	w0, #0
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IRDA_SERV_TRACE,4,2            ; @IRDA_SERV_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_SERV_INFO,4,2             ; @IRDA_SERV_INFO
l_.str.1:                               ; @.str.1
	.asciz	"Cachelog empty...\n"

l_.str.2:                               ; @.str.2
	.asciz	"Device 0x%08x is in fact ``%s''.\n"

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

l_.str.4:                               ; @.str.4
	.asciz	": cannot discover device 0x%08x !!!\n"

	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.no_dead_strip	_irnet_daddr_to_dname
.subsections_via_symbols
