	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function popen
_popen:                                 ## @popen
	.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	8(%rdi), %rax
	movq	(%rax), %r15
	movl	24(%rdi), %edx
	movq	_ATM_AAL5@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_alloc_skb
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_skb_put
	movq	%rax, %r13
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%r13)
	movl	20(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r13)
	movl	16(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r13)
	movq	_PKT_POPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, (%r13)
	movq	8(%rbx), %rdi
	callq	_SOLOS_CHAN
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_fpga_queue
	movq	_ATM_VF_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_ATM_VF_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	xorl	%edi, %edi
	callq	_list_vccs
	jmp	LBB0_7
LBB0_3:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATM_AAL5,4,2                   ## @ATM_AAL5
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported ATM type %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate sk_buff in popen()\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PKT_POPEN,4,2                  ## @PKT_POPEN
	.comm	_ATM_VF_ADDR,4,2                ## @ATM_VF_ADDR
	.comm	_ATM_VF_READY,4,2               ## @ATM_VF_READY
	.no_dead_strip	_popen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function popen
_popen:                                 ; @popen
	.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
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	w8, [x0, #24]
Lloh0:
	adrp	x9, _ATM_AAL5@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATM_AAL5@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_alloc_skb
	mov	x21, x0
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, x21
	mov	w1, #32
	bl	_skb_put
	mov	x22, x0
	mov	w0, #0
	bl	_cpu_to_le16
	str	x0, [x22, #24]
	ldr	w0, [x19, #20]
	bl	_cpu_to_le16
	str	x0, [x22, #16]
	ldr	w0, [x19, #16]
	bl	_cpu_to_le16
	str	x0, [x22, #8]
Lloh6:
	adrp	x8, _PKT_POPEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PKT_POPEN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x22]
	ldr	x0, [x19, #8]
	bl	_SOLOS_CHAN
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	mov	x3, #0
	bl	_fpga_queue
Lloh9:
	adrp	x8, _ATM_VF_ADDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATM_VF_ADDR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
Lloh12:
	adrp	x8, _ATM_VF_READY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATM_VF_READY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	mov	w0, #0
	bl	_list_vccs
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	ldr	x0, [x20]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	bl	_net_ratelimit
	cbz	x0, LBB0_2
; %bb.5:
	ldr	x0, [x20]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ATM_AAL5,4,2                   ; @ATM_AAL5
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported ATM type %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate sk_buff in popen()\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PKT_POPEN,4,2                  ; @PKT_POPEN
	.comm	_ATM_VF_ADDR,4,2                ; @ATM_VF_ADDR
	.comm	_ATM_VF_READY,4,2               ; @ATM_VF_READY
	.no_dead_strip	_popen
.subsections_via_symbols
