	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function irnet_connect_tsap
_irnet_connect_tsap:                    ## @irnet_connect_tsap
	.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
	subq	$16, %rsp
	.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), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_DENTER
	movq	%rbx, %rdi
	callq	_irnet_open_tsap
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_IRDA_SR_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DERROR
	jmp	LBB0_5
LBB0_2:
	movl	20(%rbx), %edi
	movl	16(%rbx), %esi
	movl	12(%rbx), %edx
	movl	4(%rbx), %r9d
	movl	8(%rbx), %ecx
	movq	$0, (%rsp)
	xorl	%r14d, %r14d
	xorl	%r8d, %r8d
	callq	_irttp_connect_request
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_IRDA_SR_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DERROR
	movl	%r15d, %r14d
	jmp	LBB0_5
LBB0_4:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_DEXIT
LBB0_5:
	movl	%r14d, %eax
	addq	$16, %rsp
	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	_IRDA_SR_ERROR,4,2              ## @IRDA_SR_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"connect aborted!\n"

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

	.no_dead_strip	_irnet_connect_tsap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function irnet_connect_tsap
_irnet_connect_tsap:                    ; @irnet_connect_tsap
	.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_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, x19
	bl	_DENTER
	mov	x0, x19
	bl	_irnet_open_tsap
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	b	LBB0_3
LBB0_2:
	ldp	w1, w0, [x19, #16]
	ldp	w3, w2, [x19, #8]
	ldr	w5, [x19, #4]
	mov	x4, #0
	mov	x6, #0
	bl	_irttp_connect_request
	mov	x20, x0
	cbz	w0, LBB0_5
LBB0_3:
	mov	w0, #0
	mov	x1, x19
	bl	_clear_bit
Lloh4:
	adrp	x8, _IRDA_SR_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRDA_SR_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DERROR
LBB0_4:
	mov	x0, x20
	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_5:
	ldr	w0, [x21]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DEXIT
	b	LBB0_4
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.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	_IRDA_SR_ERROR,4,2              ; @IRDA_SR_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"connect aborted!\n"

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

	.no_dead_strip	_irnet_connect_tsap
.subsections_via_symbols
