	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function irnet_open_tsap
_irnet_open_tsap:                       ## @irnet_open_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -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
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	setne	%dil
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	_IRDA_SR_ERROR@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rcx
	callq	_DABORT
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	callq	_irda_notify_init
	movq	_irnet_connect_confirm@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_irnet_connect_indication@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_irnet_disconnect_indication@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_irnet_data_indication@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_irnet_flow_indication@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_irnet_status_indication@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%rbx, -72(%rbp)
	movl	-80(%rbp), %edi
	movq	_IRNET_NOTIFY_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	_LSAP_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DEFAULT_INITIAL_CREDIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_irttp_open_tsap
	movq	%rax, 8(%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rcx
	movl	%r14d, %esi
	callq	_DABORT
	movq	8(%rbx), %rdx
	movl	(%rdx), %ecx
	movl	%ecx, (%rbx)
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_DEXIT
	xorl	%eax, %eax
	addq	$40, %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	_EBUSY,4,2                      ## @EBUSY
	.comm	_IRDA_SR_ERROR,4,2              ## @IRDA_SR_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Already busy !\n"

	.comm	_irnet_connect_confirm,4,2      ## @irnet_connect_confirm
	.comm	_irnet_connect_indication,4,2   ## @irnet_connect_indication
	.comm	_irnet_disconnect_indication,4,2 ## @irnet_disconnect_indication
	.comm	_irnet_data_indication,4,2      ## @irnet_data_indication
	.comm	_irnet_flow_indication,4,2      ## @irnet_flow_indication
	.comm	_irnet_status_indication,4,2    ## @irnet_status_indication
	.comm	_IRNET_NOTIFY_NAME,4,2          ## @IRNET_NOTIFY_NAME
	.comm	_LSAP_ANY,4,2                   ## @LSAP_ANY
	.comm	_DEFAULT_INITIAL_CREDIT,4,2     ## @DEFAULT_INITIAL_CREDIT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"Unable to allocate TSAP !\n"

L_.str.3:                               ## @.str.3
	.asciz	" - tsap=0x%p, sel=0x%X\n"

	.no_dead_strip	_irnet_open_tsap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function irnet_open_tsap
_irnet_open_tsap:                       ; @irnet_open_tsap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
Lloh0:
	adrp	x20, _IRDA_SR_TRACE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IRDA_SR_TRACE@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_DENTER
	ldr	x8, [x19, #8]
	cmp	x8, #0
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	cset	w0, ne
Lloh6:
	ldr	w8, [x8]
	neg	w1, w8
Lloh7:
	adrp	x21, _IRDA_SR_ERROR@GOTPAGE
Lloh8:
	ldr	x21, [x21, _IRDA_SR_ERROR@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	bl	_DABORT
	add	x0, sp, #8
	bl	_irda_notify_init
Lloh11:
	adrp	x8, _irnet_connect_confirm@GOTPAGE
Lloh12:
	ldr	x8, [x8, _irnet_connect_confirm@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _irnet_connect_indication@GOTPAGE
Lloh15:
	ldr	x9, [x9, _irnet_connect_indication@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #40]
Lloh17:
	adrp	x8, _irnet_disconnect_indication@GOTPAGE
Lloh18:
	ldr	x8, [x8, _irnet_disconnect_indication@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _irnet_data_indication@GOTPAGE
Lloh21:
	ldr	x9, [x9, _irnet_data_indication@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _irnet_flow_indication@GOTPAGE
Lloh24:
	ldr	x10, [x10, _irnet_flow_indication@GOTPAGEOFF]
	stp	w9, w8, [sp, #32]
Lloh25:
	ldr	w8, [x10]
Lloh26:
	adrp	x9, _irnet_status_indication@GOTPAGE
Lloh27:
	ldr	x9, [x9, _irnet_status_indication@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	str	x19, [sp, #16]
	ldr	w0, [sp, #8]
Lloh29:
	adrp	x8, _IRNET_NOTIFY_NAME@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IRNET_NOTIFY_NAME@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strlcpy
Lloh32:
	adrp	x8, _LSAP_ANY@GOTPAGE
Lloh33:
	ldr	x8, [x8, _LSAP_ANY@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x8, _DEFAULT_INITIAL_CREDIT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DEFAULT_INITIAL_CREDIT@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_irttp_open_tsap
	str	x0, [x19, #8]
	cmp	x0, #0
	cset	w0, eq
Lloh38:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w1, w8
	ldr	w2, [x21]
Lloh41:
	adrp	x3, l_.str.2@PAGE
Lloh42:
	add	x3, x3, l_.str.2@PAGEOFF
	bl	_DABORT
	ldr	x2, [x19, #8]
	ldr	w3, [x2]
	str	w3, [x19]
	ldr	w0, [x20]
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DEXIT
	mov	w0, #0
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.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	_EBUSY,4,2                      ; @EBUSY
	.comm	_IRDA_SR_ERROR,4,2              ; @IRDA_SR_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Already busy !\n"

	.comm	_irnet_connect_confirm,4,2      ; @irnet_connect_confirm
	.comm	_irnet_connect_indication,4,2   ; @irnet_connect_indication
	.comm	_irnet_disconnect_indication,4,2 ; @irnet_disconnect_indication
	.comm	_irnet_data_indication,4,2      ; @irnet_data_indication
	.comm	_irnet_flow_indication,4,2      ; @irnet_flow_indication
	.comm	_irnet_status_indication,4,2    ; @irnet_status_indication
	.comm	_IRNET_NOTIFY_NAME,4,2          ; @IRNET_NOTIFY_NAME
	.comm	_LSAP_ANY,4,2                   ; @LSAP_ANY
	.comm	_DEFAULT_INITIAL_CREDIT,4,2     ; @DEFAULT_INITIAL_CREDIT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"Unable to allocate TSAP !\n"

l_.str.3:                               ; @.str.3
	.asciz	" - tsap=0x%p, sel=0x%X\n"

	.no_dead_strip	_irnet_open_tsap
.subsections_via_symbols
