	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dev_irnet_open
_dev_irnet_open:                        ## @dev_irnet_open
	.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	%rsi, %r14
	movq	_FS_TRACE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_DENTER
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	_FS_ERROR@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rcx
	callq	_DABORT
	xorl	%eax, %eax
	callq	_lock_kernel
	movq	%r14, 56(%rbx)
	movq	$0, 48(%rbx)
	movq	%rbx, 40(%rbx)
	movq	_irnet_ppp_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	_TTP_MAX_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PPP_HDRLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	movl	$2046, %edx                     ## imm = 0x7FE
	subl	%ecx, %edx
	movl	%edx, 24(%rbx)
	addl	$2, %eax
	movl	%eax, 28(%rbx)
	movl	%edx, (%rbx)
	movq	8(%rbx), %rax
	movl	$-1, (%rax)
	movl	$1610612736, 12(%rax)           ## imm = 0x60000000
	movl	$-1, 16(%rbx)
	movq	%rbx, %rdi
	callq	_irda_irnet_create
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_DERROR
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_3
LBB0_2:
	movq	_irnet_events@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	%rbx, (%r14)
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	callq	_DEXIT
LBB0_3:
	xorl	%eax, %eax
	callq	_unlock_kernel
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FS_TRACE,4,2                   ## @FS_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(file=0x%p)\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FS_ERROR,4,2                   ## @FS_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate struct irnet...\n"

	.comm	_irnet_ppp_ops,4,2              ## @irnet_ppp_ops
	.comm	_TTP_MAX_HEADER,4,2             ## @TTP_MAX_HEADER
	.comm	_PPP_HDRLEN,4,2                 ## @PPP_HDRLEN
L_.str.2:                               ## @.str.2
	.asciz	"Can't setup IrDA link...\n"

	.comm	_irnet_events,4,2               ## @irnet_events
L_.str.3:                               ## @.str.3
	.asciz	" - ap=0x%p\n"

	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_dev_irnet_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dev_irnet_open
_dev_irnet_open:                        ; @dev_irnet_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
Lloh0:
	adrp	x22, _FS_TRACE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FS_TRACE@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_DENTER
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	mov	x20, x0
	cmp	x0, #0
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	cset	w0, eq
Lloh9:
	ldr	w8, [x8]
	neg	w1, w8
Lloh10:
	adrp	x23, _FS_ERROR@GOTPAGE
Lloh11:
	ldr	x23, [x23, _FS_ERROR@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh12:
	adrp	x3, l_.str.1@PAGE
Lloh13:
	add	x3, x3, l_.str.1@PAGEOFF
	bl	_DABORT
	bl	_lock_kernel
	stp	xzr, x19, [x20, #48]
Lloh14:
	adrp	x8, _irnet_ppp_ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _irnet_ppp_ops@GOTPAGEOFF]
Lloh16:
	adrp	x9, _TTP_MAX_HEADER@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TTP_MAX_HEADER@GOTPAGEOFF]
	stp	x8, x20, [x20, #32]
Lloh18:
	ldr	w8, [x9]
Lloh19:
	adrp	x9, _PPP_HDRLEN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PPP_HDRLEN@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	mov	w10, #2046
	add	w9, w8, w9
	sub	w9, w10, w9
	add	w8, w8, #2
	stp	w9, w8, [x20, #24]
	str	w9, [x20]
	ldr	x8, [x20, #8]
	mov	w9, #-1
	str	w9, [x8]
	mov	w10, #1610612736
	str	w10, [x8, #12]
	str	w9, [x20, #16]
	mov	x0, x20
	bl	_irda_irnet_create
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x23]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DERROR
	mov	x0, x20
	bl	_kfree
	b	LBB0_3
LBB0_2:
Lloh24:
	adrp	x8, _irnet_events@GOTPAGE
Lloh25:
	ldr	x8, [x8, _irnet_events@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	str	x20, [x19]
	ldr	w0, [x22]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_DEXIT
LBB0_3:
	bl	_unlock_kernel
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_FS_TRACE,4,2                   ; @FS_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(file=0x%p)\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FS_ERROR,4,2                   ; @FS_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate struct irnet...\n"

	.comm	_irnet_ppp_ops,4,2              ; @irnet_ppp_ops
	.comm	_TTP_MAX_HEADER,4,2             ; @TTP_MAX_HEADER
	.comm	_PPP_HDRLEN,4,2                 ; @PPP_HDRLEN
l_.str.2:                               ; @.str.2
	.asciz	"Can't setup IrDA link...\n"

	.comm	_irnet_events,4,2               ; @irnet_events
l_.str.3:                               ; @.str.3
	.asciz	" - ap=0x%p\n"

	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_dev_irnet_open
.subsections_via_symbols
