	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function irnet_find_socket
_irnet_find_socket:                     ## @irnet_find_socket
	.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, %r15
	movq	_IRDA_SERV_TRACE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_DENTER
	movl	36(%r15), %edi
	callq	_irttp_get_daddr
	movq	%rax, (%r15)
	movl	36(%r15), %edi
	callq	_irttp_get_saddr
	movl	%eax, 40(%r15)
	movq	%r15, %rdi
	callq	_irnet_daddr_to_dname
	movl	%eax, %ebx
	movq	_irnet_server@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	testl	%ebx, %ebx
	je	LBB0_1
LBB0_3:
	movl	4(%r14), %edi
	callq	_hashbin_get_first
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rcx
	movq	(%r15), %rax
	cmpq	%rax, %rcx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rcx
	cmpq	%rax, (%rbx)
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%r14), %edi
	callq	_hashbin_get_next
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
LBB0_10:
	movl	4(%r14), %edi
	callq	_hashbin_get_first
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:
	movq	%rax, %rbx
	movq	_DEV_ADDR_ANY@GOTPCREL(%rip), %r15
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	4(%r14), %edi
	callq	_hashbin_get_next
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_18
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leaq	32(%rbx), %rsi
	xorl	%edi, %edi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%rbx), %rax
	cmpb	$0, (%rax)
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_17
## %bb.16:
	movq	_IRDA_SERV_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_DEBUG
	jmp	LBB0_19
LBB0_18:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_1:
	movl	4(%r14), %edi
	movq	8(%r15), %rdx
	xorl	%esi, %esi
	callq	_hashbin_find
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rbx
	movq	_IRDA_SERV_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rcx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	movq	_IRDA_SERV_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_DEBUG
LBB0_19:
	movq	_irnet_server@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	callq	_DEXIT
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	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	_irnet_server,8,2               ## @irnet_server
	.comm	_IRDA_SERV_INFO,4,2             ## @IRDA_SERV_INFO
L_.str.1:                               ## @.str.1
	.asciz	"Socket 0x%p matches rname ``%s''.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Socket 0x%p matches daddr %#08x.\n"

	.comm	_DEV_ADDR_ANY,8,3               ## @DEV_ADDR_ANY
L_.str.3:                               ## @.str.3
	.asciz	"Socket 0x%p is free.\n"

L_.str.4:                               ## @.str.4
	.asciz	" - new = 0x%p\n"

	.no_dead_strip	_irnet_find_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function irnet_find_socket
_irnet_find_socket:                     ; @irnet_find_socket
	.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	x21, x0
Lloh0:
	adrp	x22, _IRDA_SERV_TRACE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IRDA_SERV_TRACE@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_DENTER
	ldr	w0, [x21, #36]
	bl	_irttp_get_daddr
	str	x0, [x21]
	ldr	w0, [x21, #36]
	bl	_irttp_get_saddr
	str	w0, [x21, #40]
	mov	x0, x21
	bl	_irnet_daddr_to_dname
	mov	x19, x0
Lloh4:
	adrp	x20, _irnet_server@GOTPAGE
Lloh5:
	ldr	x20, [x20, _irnet_server@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock_bh
	cbz	w19, LBB0_14
LBB0_1:
	ldr	w0, [x20, #4]
	bl	_hashbin_get_first
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20, #4]
	bl	_hashbin_get_next
	mov	x19, x0
	cbnz	x0, LBB0_3
LBB0_6:
	ldr	w0, [x20, #4]
	bl	_hashbin_get_first
	mov	x19, x0
	cbz	x0, LBB0_19
; %bb.7:
Lloh6:
	adrp	x21, _DEV_ADDR_ANY@GOTPAGE
Lloh7:
	ldr	x21, [x21, _DEV_ADDR_ANY@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x20, #4]
	bl	_hashbin_get_next
	mov	x19, x0
	cbz	x0, LBB0_19
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x19, #32
	mov	w0, #0
	bl	_test_bit
	cbnz	w0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #8]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
; %bb.13:
Lloh8:
	adrp	x8, _IRDA_SERV_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRDA_SERV_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_18
LBB0_14:
	ldr	w0, [x20, #4]
	ldr	x2, [x21, #8]
	mov	w1, #0
	bl	_hashbin_find
	cbz	x0, LBB0_1
; %bb.15:
	mov	x19, x0
Lloh13:
	adrp	x8, _IRDA_SERV_INFO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRDA_SERV_INFO@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_16:
	mov	x8, x9
LBB0_17:
Lloh18:
	adrp	x9, _IRDA_SERV_INFO@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IRDA_SERV_INFO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_18:
	mov	x2, x19
	bl	_DEBUG
LBB0_19:
Lloh23:
	adrp	x0, _irnet_server@GOTPAGE
Lloh24:
	ldr	x0, [x0, _irnet_server@GOTPAGEOFF]
	bl	_spin_unlock_bh
	ldr	w0, [x22]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	bl	_DEXIT
	mov	x0, x19
	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	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.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	_irnet_server,8,2               ; @irnet_server
	.comm	_IRDA_SERV_INFO,4,2             ; @IRDA_SERV_INFO
l_.str.1:                               ; @.str.1
	.asciz	"Socket 0x%p matches rname ``%s''.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Socket 0x%p matches daddr %#08x.\n"

	.comm	_DEV_ADDR_ANY,8,3               ; @DEV_ADDR_ANY
l_.str.3:                               ; @.str.3
	.asciz	"Socket 0x%p is free.\n"

l_.str.4:                               ; @.str.4
	.asciz	" - new = 0x%p\n"

	.no_dead_strip	_irnet_find_socket
.subsections_via_symbols
