	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mISDNipac_init                 ## -- Begin function mISDNipac_init
	.p2align	4, 0x90
_mISDNipac_init:                        ## @mISDNipac_init
	.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	%rdi, %rbx
	movq	%rsi, 48(%rdi)
	movq	_DEBUG_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 28(%rdi)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edx
	movl	44(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_notice
LBB0_2:
	movl	(%rbx), %eax
	movq	_IPAC_TYPE_HSCX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_IPAC_TYPE_ISAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	16(%rbx), %rax
	movl	$0, (%rax)
	movl	$32, %edx
	movl	$64, %ecx
	jmp	LBB0_10
LBB0_4:
	movq	_IPAC_TYPE_IPAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_6
## %bb.5:
	movq	_IPAC_TYPE_ISAC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movq	16(%rbx), %rax
	movl	$0, (%rax)
	movl	$64, %ecx
	jmp	LBB0_9
LBB0_6:
	movq	_IPAC_TYPE_IPACX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_7
## %bb.8:
	movq	_IPAC_TYPE_ISACX@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movq	_IPACX_OFF_ICA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	16(%rbx), %rax
	movl	%ecx, (%rax)
	movq	_IPACX_OFF_ICB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_9:
	movl	$64, %edx
LBB0_10:
	leaq	24(%rbx), %rdi
	movl	%ecx, 64(%rax)
	movl	%edx, 4(%rax)
	movl	%edx, 68(%rax)
	movq	%r14, %rsi
	callq	_mISDNisac_init
	movq	_ipac_dctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	32(%rbx), %r12
	movl	%eax, 40(%rbx)
	movq	16(%rbx), %rax
	movl	$1, 24(%rax)
	movl	36(%rbx), %esi
	movl	$1, %r15d
	movl	$1, %edi
	callq	_set_channelmap
	movq	16(%rbx), %rdi
	addq	$56, %rdi
	movq	%r12, %rsi
	callq	_list_add
	movq	16(%rbx), %rdi
	movq	_MAX_DATA_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rdi), %edx
	addq	$24, %rdi
	callq	_mISDN_initbchannel
	movq	16(%rbx), %rax
	movl	$1, 40(%rax)
	movq	_hscx_l2l1@GOTPCREL(%rip), %rcx
	movq	%rcx, 48(%rax)
	movq	_hscx_bctrl@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%ecx, 44(%rax)
	movq	%r14, 32(%rax)
	movq	%rbx, 16(%rax)
	movl	$47, 8(%rax)
	movl	$2, 88(%rax)
	movl	36(%rbx), %esi
	movl	$2, %edi
	callq	_set_channelmap
	movq	16(%rbx), %rdi
	addq	$120, %rdi
	movq	%r12, %rsi
	callq	_list_add
	movq	16(%rbx), %rdi
	movq	_MAX_DATA_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	68(%rdi), %edx
	addq	$88, %rdi
	callq	_mISDN_initbchannel
	movq	16(%rbx), %rax
	movl	$2, 104(%rax)
	movq	_hscx_l2l1@GOTPCREL(%rip), %rcx
	movq	%rcx, 112(%rax)
	movl	(%r13), %ecx
	movl	%ecx, 108(%rax)
	movq	%r14, 96(%rax)
	movq	%rbx, 80(%rax)
	movl	$3, 72(%rax)
	movq	_ipac_init@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_free_ipac@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_ISDN_P_B_RAW@GOTPCREL(%rip), %rax
	movq	_ISDN_P_B_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %eax
	andl	%ecx, %eax
	movq	_ISDN_P_B_HDLC@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r15d
	btsl	%eax, %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_HW,4,2                   ## @DEBUG_HW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: ipac type %x\n"

	.comm	_IPAC_TYPE_HSCX,4,2             ## @IPAC_TYPE_HSCX
	.comm	_IPAC_TYPE_ISAC,4,2             ## @IPAC_TYPE_ISAC
	.comm	_IPAC_TYPE_IPAC,4,2             ## @IPAC_TYPE_IPAC
	.comm	_IPAC_TYPE_IPACX,4,2            ## @IPAC_TYPE_IPACX
	.comm	_IPAC_TYPE_ISACX,4,2            ## @IPAC_TYPE_ISACX
	.comm	_IPACX_OFF_ICA,4,2              ## @IPACX_OFF_ICA
	.comm	_IPACX_OFF_ICB,4,2              ## @IPACX_OFF_ICB
	.comm	_ipac_dctrl,4,2                 ## @ipac_dctrl
	.comm	_MAX_DATA_MEM,4,2               ## @MAX_DATA_MEM
	.comm	_hscx_l2l1,4,2                  ## @hscx_l2l1
	.comm	_hscx_bctrl,4,2                 ## @hscx_bctrl
	.comm	_ipac_init,4,2                  ## @ipac_init
	.comm	_free_ipac,4,2                  ## @free_ipac
	.comm	_ISDN_P_B_RAW,4,2               ## @ISDN_P_B_RAW
	.comm	_ISDN_P_B_MASK,4,2              ## @ISDN_P_B_MASK
	.comm	_ISDN_P_B_HDLC,4,2              ## @ISDN_P_B_HDLC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mISDNipac_init                 ; -- Begin function mISDNipac_init
	.p2align	2
_mISDNipac_init:                        ; @mISDNipac_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	str	x1, [x0, #48]
	ldr	w8, [x0, #28]
Lloh0:
	adrp	x9, _DEBUG_HW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DEBUG_HW@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x19, #44]
	ldr	w2, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_notice
LBB0_2:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _IPAC_TYPE_HSCX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IPAC_TYPE_HSCX@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _IPAC_TYPE_ISAC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IPAC_TYPE_ISAC@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	x8, [x19, #16]
	str	wzr, [x8]
	mov	w10, #32
	mov	w9, #64
	b	LBB0_9
LBB0_4:
Lloh11:
	adrp	x9, _IPAC_TYPE_IPAC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IPAC_TYPE_IPAC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _IPAC_TYPE_ISAC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IPAC_TYPE_ISAC@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [x19, #24]
	ldr	x8, [x19, #16]
	str	wzr, [x8]
	mov	w9, #64
	b	LBB0_8
LBB0_6:
Lloh17:
	adrp	x9, _IPAC_TYPE_IPACX@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IPAC_TYPE_IPACX@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.7:
Lloh20:
	adrp	x8, _IPAC_TYPE_ISACX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IPAC_TYPE_ISACX@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [x19, #24]
Lloh23:
	adrp	x8, _IPACX_OFF_ICA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IPACX_OFF_ICA@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x8]
	ldr	x8, [x19, #16]
	str	w9, [x8]
Lloh26:
	adrp	x9, _IPACX_OFF_ICB@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IPACX_OFF_ICB@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
LBB0_8:
	mov	w10, #64
LBB0_9:
	add	x0, x19, #24
	str	w10, [x8, #4]
	stp	w9, w10, [x8, #64]
	mov	x1, x20
	bl	_mISDNisac_init
Lloh29:
	adrp	x8, _ipac_dctrl@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ipac_dctrl@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	add	x21, x19, #32
	str	w8, [x19, #40]
	ldr	x8, [x19, #16]
	mov	w22, #1
	str	w22, [x8, #24]
	ldr	w1, [x19, #36]
	mov	w0, #1
	bl	_set_channelmap
	ldr	x8, [x19, #16]
	add	x0, x8, #56
	mov	x1, x21
	bl	_list_add
	ldr	x8, [x19, #16]
	add	x0, x8, #24
Lloh32:
	adrp	x23, _MAX_DATA_MEM@GOTPAGE
Lloh33:
	ldr	x23, [x23, _MAX_DATA_MEM@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w2, [x8, #4]
	bl	_mISDN_initbchannel
	ldr	x8, [x19, #16]
Lloh34:
	adrp	x24, _hscx_l2l1@GOTPAGE
Lloh35:
	ldr	x24, [x24, _hscx_l2l1@GOTPAGEOFF]
	str	x24, [x8, #48]
Lloh36:
	adrp	x25, _hscx_bctrl@GOTPAGE
Lloh37:
	ldr	x25, [x25, _hscx_bctrl@GOTPAGEOFF]
	ldr	w9, [x25]
	stp	w22, w9, [x8, #40]
	str	x20, [x8, #32]
	str	x19, [x8, #16]
	mov	w9, #47
	str	w9, [x8, #8]
	mov	w26, #2
	str	w26, [x8, #88]
	ldr	w1, [x19, #36]
	mov	w0, #2
	bl	_set_channelmap
	ldr	x8, [x19, #16]
	add	x0, x8, #120
	mov	x1, x21
	bl	_list_add
	ldr	x8, [x19, #16]
	add	x0, x8, #88
	ldr	w1, [x23]
	ldr	w2, [x8, #68]
	bl	_mISDN_initbchannel
	ldr	x8, [x19, #16]
	str	x24, [x8, #112]
	ldr	w9, [x25]
	stp	w26, w9, [x8, #104]
	str	x20, [x8, #96]
	str	x19, [x8, #80]
	mov	w9, #3
	str	w9, [x8, #72]
Lloh38:
	adrp	x8, _ipac_init@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ipac_init@GOTPAGEOFF]
Lloh40:
	adrp	x9, _free_ipac@GOTPAGE
Lloh41:
	ldr	x9, [x9, _free_ipac@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
Lloh44:
	adrp	x8, _ISDN_P_B_RAW@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ISDN_P_B_RAW@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
Lloh47:
	adrp	x9, _ISDN_P_B_MASK@GOTPAGE
Lloh48:
	ldr	x9, [x9, _ISDN_P_B_MASK@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	and	w8, w9, w8
	lsl	w8, w22, w8
Lloh50:
	adrp	x10, _ISDN_P_B_HDLC@GOTPAGE
Lloh51:
	ldr	x10, [x10, _ISDN_P_B_HDLC@GOTPAGEOFF]
Lloh52:
	ldr	w10, [x10]
	and	w9, w10, w9
	lsl	w9, w22, w9
	orr	w0, w9, w8
LBB0_10:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh42
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_HW,4,2                   ; @DEBUG_HW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: ipac type %x\n"

	.comm	_IPAC_TYPE_HSCX,4,2             ; @IPAC_TYPE_HSCX
	.comm	_IPAC_TYPE_ISAC,4,2             ; @IPAC_TYPE_ISAC
	.comm	_IPAC_TYPE_IPAC,4,2             ; @IPAC_TYPE_IPAC
	.comm	_IPAC_TYPE_IPACX,4,2            ; @IPAC_TYPE_IPACX
	.comm	_IPAC_TYPE_ISACX,4,2            ; @IPAC_TYPE_ISACX
	.comm	_IPACX_OFF_ICA,4,2              ; @IPACX_OFF_ICA
	.comm	_IPACX_OFF_ICB,4,2              ; @IPACX_OFF_ICB
	.comm	_ipac_dctrl,4,2                 ; @ipac_dctrl
	.comm	_MAX_DATA_MEM,4,2               ; @MAX_DATA_MEM
	.comm	_hscx_l2l1,4,2                  ; @hscx_l2l1
	.comm	_hscx_bctrl,4,2                 ; @hscx_bctrl
	.comm	_ipac_init,4,2                  ; @ipac_init
	.comm	_free_ipac,4,2                  ; @free_ipac
	.comm	_ISDN_P_B_RAW,4,2               ; @ISDN_P_B_RAW
	.comm	_ISDN_P_B_MASK,4,2              ; @ISDN_P_B_MASK
	.comm	_ISDN_P_B_HDLC,4,2              ; @ISDN_P_B_HDLC
.subsections_via_symbols
