	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_irda_irnet_connect             ## -- Begin function irda_irnet_connect
	.p2align	4, 0x90
_irda_irnet_connect:                    ## @irda_irnet_connect
	.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_SOCK_TRACE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_DENTER
	leaq	48(%r15), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	_IRDA_SOCK_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %edi
	callq	_DRETURN
LBB0_2:
	cmpq	$0, 40(%r15)
	jne	LBB0_4
## %bb.3:
	cmpq	$0, 32(%r15)
	je	LBB0_5
LBB0_4:
	movq	_IRDA_SOCK_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_DERROR
LBB0_5:
	movq	_irnet_server@GOTPCREL(%rip), %r14
	cmpq	$0, 8(%r14)
	je	LBB0_8
## %bb.6:
	cmpq	$0, 24(%r15)
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movl	4(%r14), %edi
	movq	(%r15), %rcx
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_hashbin_insert
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movq	_IRDA_SOCK_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	leaq	L_.str.3(%rip), %rsi
	callq	_DEBUG
LBB0_8:
	movq	8(%r15), %rax
	movq	_DEV_ADDR_ANY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.9:
	movq	(%r15), %rax
	cmpb	$0, (%rax)
	je	LBB0_10
## %bb.12:
	movq	%r15, %rdi
	callq	_irnet_dname_to_daddr
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movq	_IRDA_SOCK_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.5(%rip), %rdx
	movl	%eax, %edi
	callq	_DRETURN
	jmp	LBB0_15
LBB0_14:
	movq	%rax, 16(%r15)
LBB0_15:
	movq	%r15, %rdi
	callq	_irnet_find_lsap_sel
LBB0_16:
	movl	(%r12), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_DEXIT
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r15, %rdi
	callq	_irnet_discover_daddr_and_lsap_sel
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:
	movq	_IRDA_SOCK_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.4(%rip), %rdx
	movl	%eax, %edi
	callq	_DRETURN
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_IRDA_SOCK_TRACE,4,2            ## @IRDA_SOCK_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(self=0x%p)\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IRDA_SOCK_INFO,4,2             ## @IRDA_SOCK_INFO
L_.str.1:                               ## @.str.1
	.asciz	"Already connecting...\n"

	.comm	_IRDA_SOCK_ERROR,4,2            ## @IRDA_SOCK_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Socket not cleaned up...\n"

	.comm	_irnet_server,16,3              ## @irnet_server
L_.str.3:                               ## @.str.3
	.asciz	"Inserted ``%s'' in hashbin...\n"

	.comm	_DEV_ADDR_ANY,8,3               ## @DEV_ADDR_ANY
L_.str.4:                               ## @.str.4
	.asciz	"auto-connect failed!\n"

L_.str.5:                               ## @.str.5
	.asciz	"name connect failed!\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_irda_irnet_connect             ; -- Begin function irda_irnet_connect
	.p2align	2
_irda_irnet_connect:                    ; @irda_irnet_connect
	.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	x21, _IRDA_SOCK_TRACE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IRDA_SOCK_TRACE@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_DENTER
	add	x1, x19, #48
	mov	w0, #0
	bl	_test_and_set_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
Lloh7:
	adrp	x8, _IRDA_SOCK_INFO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRDA_SOCK_INFO@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_DRETURN
LBB0_2:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _IRDA_SOCK_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRDA_SOCK_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DERROR
LBB0_5:
Lloh17:
	adrp	x20, _irnet_server@GOTPAGE
Lloh18:
	ldr	x20, [x20, _irnet_server@GOTPAGEOFF]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_spin_lock_bh
	ldr	w0, [x20, #4]
	ldr	x3, [x19]
	mov	x1, x19
	mov	w2, #0
	bl	_hashbin_insert
	mov	x0, x20
	bl	_spin_unlock_bh
Lloh19:
	adrp	x8, _IRDA_SOCK_INFO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IRDA_SOCK_INFO@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DEBUG
LBB0_8:
	ldr	x8, [x19, #8]
Lloh24:
	adrp	x9, _DEV_ADDR_ANY@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DEV_ADDR_ANY@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.9:
	ldr	x8, [x19]
	ldrb	w8, [x8]
	cbz	w8, LBB0_15
; %bb.10:
	mov	x0, x19
	bl	_irnet_dname_to_daddr
	cbz	w0, LBB0_13
; %bb.11:
Lloh27:
	adrp	x8, _IRDA_SOCK_INFO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IRDA_SOCK_INFO@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.5@PAGE
Lloh31:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_DRETURN
	b	LBB0_13
LBB0_12:
	str	x8, [x19, #16]
LBB0_13:
	mov	x0, x19
	bl	_irnet_find_lsap_sel
LBB0_14:
	ldr	w0, [x21]
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@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
LBB0_15:
	mov	x0, x19
	bl	_irnet_discover_daddr_and_lsap_sel
	cbz	w0, LBB0_14
; %bb.16:
Lloh34:
	adrp	x8, _IRDA_SOCK_INFO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IRDA_SOCK_INFO@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x2, l_.str.4@PAGE
Lloh38:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_DRETURN
	b	LBB0_14
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_IRDA_SOCK_TRACE,4,2            ; @IRDA_SOCK_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(self=0x%p)\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IRDA_SOCK_INFO,4,2             ; @IRDA_SOCK_INFO
l_.str.1:                               ; @.str.1
	.asciz	"Already connecting...\n"

	.comm	_IRDA_SOCK_ERROR,4,2            ; @IRDA_SOCK_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Socket not cleaned up...\n"

	.comm	_irnet_server,16,3              ; @irnet_server
l_.str.3:                               ; @.str.3
	.asciz	"Inserted ``%s'' in hashbin...\n"

	.comm	_DEV_ADDR_ANY,8,3               ; @DEV_ADDR_ANY
l_.str.4:                               ; @.str.4
	.asciz	"auto-connect failed!\n"

l_.str.5:                               ; @.str.5
	.asciz	"name connect failed!\n"

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

.subsections_via_symbols
