	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function irnet_dname_to_daddr
_irnet_dname_to_daddr:                  ## @irnet_dname_to_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_IRDA_SR_TRACE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	callq	_DENTER
	movq	_DISCOVERY_DEFAULT_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_irlmp_get_discoveries
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	$0, -44(%rbp)
	jg	LBB0_3
	jmp	LBB0_7
LBB0_1:
	movq	_ENETUNREACH@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	movq	_IRDA_SR_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_DRETURN
	cmpl	$0, -44(%rbp)
	jle	LBB0_7
LBB0_3:
	xorl	%ebx, %ebx
	movq	_NICKNAME_MAX_LEN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14,%rbx,8), %edi
	movl	(%r12), %esi
	movl	(%r13), %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	-44(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_7:
	movq	_IRDA_SR_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DEBUG
	movq	%r14, %rdi
	callq	_kfree
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_5:
	movl	(%r14,%rbx,8), %ecx
	movl	%ecx, 4(%r12)
	movq	_IRDA_SR_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DEBUG
	movq	%r14, %rdi
	callq	_kfree
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_DEXIT
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	"Cachelog empty...\n"

	.comm	_NICKNAME_MAX_LEN,4,2           ## @NICKNAME_MAX_LEN
L_.str.2:                               ## @.str.2
	.asciz	"discovered device ``%s'' at address 0x%08x.\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"cannot discover device ``%s'' !!!\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function irnet_dname_to_daddr
_irnet_dname_to_daddr:                  ; @irnet_dname_to_daddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
Lloh0:
	adrp	x21, _IRDA_SR_TRACE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IRDA_SR_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_SR_INFO@GOTPAGE
Lloh8:
	ldr	x22, [x22, _IRDA_SR_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	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x24, #0
	add	x23, x19, #4
Lloh14:
	adrp	x25, _NICKNAME_MAX_LEN@GOTPAGE
Lloh15:
	ldr	x25, [x25, _NICKNAME_MAX_LEN@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	w1, [x20]
	ldr	w2, [x25]
	bl	_strncmp
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [sp, #12]
	add	x23, x23, #8
	cmp	x24, x8
	b.lt	LBB0_4
LBB0_6:
	ldr	w0, [x22]
	ldr	w2, [x20]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_DEBUG
	mov	x0, x19
	bl	_kfree
Lloh18:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	ldur	w8, [x23, #-4]
	str	w8, [x20, #4]
	ldr	w0, [x22]
	ldr	w2, [x20]
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DEBUG
	mov	x0, x19
	bl	_kfree
	ldr	w0, [x21]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DEXIT
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	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 AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.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	"Cachelog empty...\n"

	.comm	_NICKNAME_MAX_LEN,4,2           ; @NICKNAME_MAX_LEN
l_.str.2:                               ; @.str.2
	.asciz	"discovered device ``%s'' at address 0x%08x.\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"cannot discover device ``%s'' !!!\n"

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