	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cb_out_2                       ## -- Begin function cb_out_2
	.p2align	4, 0x90
_cb_out_2:                              ## @cb_out_2
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_capi_conn_active_resp
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	_last_ref_num@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leal	1(%rdx), %ecx
	movl	%ecx, (%r15)
	andl	$32767, %edx                    ## imm = 0x7FFF
	movq	%rdx, (%rbx)
	movq	_MSG_CONN_ACTV_RESP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-32(%rbp), %rcx
	movq	%r14, %rdi
	movl	%eax, %r8d
	callq	_pcbit_l2_write
	movq	_ISDN_STAT_DCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -44(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -48(%rbp)
	movq	(%r14), %rax
	leaq	-48(%rbp), %rdi
	callq	*(%rax)
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_capi_select_proto_req
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movl	(%r15), %edx
	leal	1(%rdx), %ecx
	movl	%ecx, (%r15)
	andl	$32767, %edx                    ## imm = 0x7FFF
	movq	%rdx, (%rbx)
	movq	_MSG_SELP_REQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-32(%rbp), %rcx
	movq	%r14, %rdi
	movl	%eax, %r8d
	callq	_pcbit_l2_write
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	callq	_printk
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"capi_conn_active_req failed\n"

	.comm	_last_ref_num,4,2               ## @last_ref_num
	.comm	_MSG_CONN_ACTV_RESP,4,2         ## @MSG_CONN_ACTV_RESP
	.comm	_ISDN_STAT_DCONN,4,2            ## @ISDN_STAT_DCONN
L_.str.1:                               ## @.str.1
	.asciz	"capi_select_proto_req failed\n"

	.comm	_MSG_SELP_REQ,4,2               ## @MSG_SELP_REQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cb_out_2                       ; -- Begin function cb_out_2
	.p2align	2
_cb_out_2:                              ; @cb_out_2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
	add	x1, sp, #8
	mov	x0, x20
	bl	_capi_conn_active_resp
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x4, x0
Lloh0:
	adrp	x21, _last_ref_num@GOTPAGE
Lloh1:
	ldr	x21, [x21, _last_ref_num@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w9, w8, #1
	str	w9, [x21]
	and	x2, x8, #0x7fff
	str	x2, [x20]
Lloh2:
	adrp	x8, _MSG_CONN_ACTV_RESP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_CONN_ACTV_RESP@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	x3, [sp, #8]
	mov	x0, x19
	bl	_pcbit_l2_write
Lloh5:
	adrp	x8, _ISDN_STAT_DCONN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ISDN_STAT_DCONN@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x8]
	ldr	w8, [x19, #8]
	ldr	w9, [x20, #8]
	stp	w8, w10, [sp, #20]
	str	w9, [sp, #16]
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x0, sp, #16
	blr	x8
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #1
	bl	_capi_select_proto_req
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x4, x0
	ldr	w8, [x21]
	add	w9, w8, #1
	str	w9, [x21]
	and	x2, x8, #0x7fff
	str	x2, [x20]
Lloh8:
	adrp	x8, _MSG_SELP_REQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_SELP_REQ@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x3, [sp, #8]
	mov	x0, x19
	bl	_pcbit_l2_write
	b	LBB0_6
LBB0_3:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_printk
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"capi_conn_active_req failed\n"

	.comm	_last_ref_num,4,2               ; @last_ref_num
	.comm	_MSG_CONN_ACTV_RESP,4,2         ; @MSG_CONN_ACTV_RESP
	.comm	_ISDN_STAT_DCONN,4,2            ; @ISDN_STAT_DCONN
l_.str.1:                               ; @.str.1
	.asciz	"capi_select_proto_req failed\n"

	.comm	_MSG_SELP_REQ,4,2               ; @MSG_SELP_REQ
.subsections_via_symbols
