	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isdn_net_getcfg                ## -- Begin function isdn_net_getcfg
	.p2align	4, 0x90
_isdn_net_getcfg:                       ## @isdn_net_getcfg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	112(%rdi), %edi
	callq	_isdn_net_findif
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rax), %r14
	movq	(%rbx), %rdi
	movq	(%r14), %rsi
	callq	_strcpy
	movl	100(%r14), %eax
	movl	%eax, 108(%rbx)
	movq	8(%r14), %rax
	movq	8(%rbx), %rdi
	movq	_dev@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rdx
	movl	16(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	movups	84(%r14), %xmm0
	movups	%xmm0, 92(%rbx)
	movl	20(%r14), %eax
	movq	_ISDN_NET_SECURE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, 16(%rbx)
	movq	_ISDN_NET_CALLBACK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movq	_ISDN_NET_CBOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ISDN_NET_CBHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ISDN_NET_DIALMODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	80(%r14), %eax
	movl	%edx, 20(%rbx)
	andl	20(%r14), %ecx
	movl	$2, %ecx
	cmovel	%edx, %ecx
	movl	%ecx, 20(%rbx)
	movl	20(%r14), %ecx
	xorl	%edx, %edx
	testl	%ecx, %esi
	setne	%dl
	movl	%edx, 24(%rbx)
	andl	%ecx, %edi
	movl	%edi, 28(%rbx)
	movl	24(%r14), %esi
	movl	%esi, %ecx
	shrl	$2, %ecx
	andl	$1, %ecx
	movl	%ecx, 32(%rbx)
	movl	%esi, %ecx
	shrl	$3, %ecx
	andl	$1, %ecx
	movl	%ecx, 36(%rbx)
	movq	72(%r14), %xmm0                 ## xmm0 = mem[0],zero
	movd	68(%r14), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	pblendw	$3, %xmm1, %xmm0                ## xmm0 = xmm1[0,1],xmm0[2,3,4,5,6,7]
	pinsrd	$3, %eax, %xmm0
	movdqu	%xmm0, 76(%rbx)
	movl	28(%r14), %eax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cltd
	idivl	%ecx
	movl	%eax, 40(%rbx)
	movq	_ISDN_CHARGEHUP@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_4
## %bb.2:
	movl	32(%r14), %eax
	cltd
	idivl	%ecx
	jmp	LBB0_5
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	movl	%eax, 44(%rbx)
	movl	64(%r14), %eax
	movl	%eax, 72(%rbx)
	movl	36(%r14), %eax
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	cltd
	idivl	%ecx
	jmp	LBB0_8
LBB0_7:
	movl	$-1, %eax
LBB0_8:
	movl	%eax, 48(%rbx)
	movl	40(%r14), %eax
	cltd
	idivl	%ecx
	movl	%eax, 52(%rbx)
	movq	56(%r14), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	(%rax), %rdi
	callq	_strlen
	movq	56(%rbx), %rdi
	cmpl	$9, %eax
	jl	LBB0_12
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_13
LBB0_11:
	movq	56(%rbx), %rax
	movb	$0, (%rax)
	jmp	LBB0_14
LBB0_12:
	movq	56(%r14), %rax
	movq	(%rax), %rsi
LBB0_13:
	callq	_strcpy
LBB0_14:
	movq	48(%r14), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	movq	(%rax), %rdi
	callq	_strlen
	cmpl	$9, %eax
	jl	LBB0_17
## %bb.16:
	movq	64(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcpy
LBB0_17:
	movq	64(%rbx), %rdi
	movq	48(%r14), %rax
	movq	(%rax), %rsi
	callq	_strcpy
	jmp	LBB0_19
LBB0_18:
	movq	64(%rbx), %rax
	movb	$0, (%rax)
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s,%d"

	.comm	_dev,8,3                        ## @dev
	.comm	_ISDN_NET_SECURE,4,2            ## @ISDN_NET_SECURE
	.comm	_ISDN_NET_CALLBACK,4,2          ## @ISDN_NET_CALLBACK
	.comm	_ISDN_NET_CBOUT,4,2             ## @ISDN_NET_CBOUT
	.comm	_ISDN_NET_CBHUP,4,2             ## @ISDN_NET_CBHUP
	.comm	_ISDN_NET_DIALMODE_MASK,4,2     ## @ISDN_NET_DIALMODE_MASK
	.comm	_HZ,4,2                         ## @HZ
	.comm	_ISDN_CHARGEHUP,4,2             ## @ISDN_CHARGEHUP
L_.str.1:                               ## @.str.1
	.asciz	"too-long"

	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function isdn_net_getcfg
lCPI0_0:
	.long	4294967294                      ; 0xfffffffe
	.long	4294967293                      ; 0xfffffffd
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_isdn_net_getcfg
	.p2align	2
_isdn_net_getcfg:                       ; @isdn_net_getcfg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #112]
	bl	_isdn_net_findif
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x20, [x0]
	ldr	x0, [x19]
	ldr	x1, [x20]
	bl	_strcpy
	ldr	w8, [x20, #100]
	str	w8, [x19, #108]
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _dev@GOTPAGE
Lloh1:
	ldr	x9, [x9, _dev@GOTPAGEOFF]
	ldr	x0, [x19, #8]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	x2, [x9, x8, lsl #3]
	ldr	w3, [x20, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sprintf
	ldur	q0, [x20, #84]
	stur	q0, [x19, #92]
	ldr	w8, [x20, #20]
Lloh5:
	adrp	x9, _ISDN_NET_SECURE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ISDN_NET_SECURE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
Lloh8:
	adrp	x9, _ISDN_NET_CALLBACK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ISDN_NET_CALLBACK@GOTPAGEOFF]
	cset	w10, ne
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
Lloh11:
	adrp	x9, _ISDN_NET_CBOUT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ISDN_NET_CBOUT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x11, _ISDN_NET_CBHUP@GOTPAGE
Lloh15:
	ldr	x11, [x11, _ISDN_NET_CBHUP@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
Lloh17:
	adrp	x12, _ISDN_NET_DIALMODE_MASK@GOTPAGE
Lloh18:
	ldr	x12, [x12, _ISDN_NET_DIALMODE_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w12, [x12]
	add	x13, x20, #76
	ldr	w14, [x20, #80]
	stp	w10, w8, [x19, #16]
	ldr	w10, [x20, #20]
	tst	w9, w10
	mov	w9, #2
	csel	w8, w8, w9, eq
	str	w8, [x19, #20]
	ldp	w8, w9, [x20, #20]
	tst	w11, w8
	cset	w10, ne
	and	w8, w12, w8
	dup.2s	v0, w9
	stp	w10, w8, [x19, #24]
Lloh20:
	adrp	x8, lCPI0_0@PAGE
Lloh21:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi.2s	v1, #1
	and.8b	v0, v0, v1
	str	d0, [x19, #32]
	ldur	d0, [x20, #68]
	ld1.s	{ v0 }[2], [x13]
	mov.s	v0[3], w14
	stur	q0, [x19, #76]
	ldr	w10, [x20, #28]
Lloh22:
	adrp	x8, _HZ@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	sdiv	w10, w10, w8
	str	w10, [x19, #40]
Lloh25:
	adrp	x10, _ISDN_CHARGEHUP@GOTPAGE
Lloh26:
	ldr	x10, [x10, _ISDN_CHARGEHUP@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.2:
	ldr	w9, [x20, #32]
	sdiv	w9, w9, w8
	b	LBB0_5
LBB0_3:
Lloh28:
	adrp	x8, _ENODEV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_4:
	mov	w9, #0
LBB0_5:
	ldr	w10, [x20, #64]
	str	w10, [x19, #72]
	mov	w10, #-1
	ldp	w11, w12, [x20, #36]
	sdiv	w13, w11, w8
	tst	w11, #0x80000000
	csel	w10, w10, w13, ne
	stp	w9, w10, [x19, #44]
	sdiv	w8, w12, w8
	str	w8, [x19, #52]
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x0, [x8]
	bl	_strlen
	mov	x8, x0
	ldr	x0, [x19, #56]
	cmp	w8, #9
	b.lt	LBB0_10
; %bb.7:
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_8:
	ldr	x8, [x19, #56]
	strb	wzr, [x8]
	ldr	x8, [x20, #48]
	cbnz	x8, LBB0_12
LBB0_9:
	mov	w0, #0
	ldr	x8, [x19, #64]
	strb	wzr, [x8]
	b	LBB0_15
LBB0_10:
	ldr	x8, [x20, #56]
	ldr	x1, [x8]
LBB0_11:
	bl	_strcpy
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_9
LBB0_12:
	ldr	x0, [x8]
	bl	_strlen
	cmp	w0, #9
	b.lt	LBB0_14
; %bb.13:
	ldr	x0, [x19, #64]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcpy
LBB0_14:
	ldr	x0, [x19, #64]
	ldr	x8, [x20, #48]
	ldr	x1, [x8]
	bl	_strcpy
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdrp	Lloh20, Lloh22
	.loh AdrpLdr	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s,%d"

	.comm	_dev,8,3                        ; @dev
	.comm	_ISDN_NET_SECURE,4,2            ; @ISDN_NET_SECURE
	.comm	_ISDN_NET_CALLBACK,4,2          ; @ISDN_NET_CALLBACK
	.comm	_ISDN_NET_CBOUT,4,2             ; @ISDN_NET_CBOUT
	.comm	_ISDN_NET_CBHUP,4,2             ; @ISDN_NET_CBHUP
	.comm	_ISDN_NET_DIALMODE_MASK,4,2     ; @ISDN_NET_DIALMODE_MASK
	.comm	_HZ,4,2                         ; @HZ
	.comm	_ISDN_CHARGEHUP,4,2             ; @ISDN_CHARGEHUP
l_.str.1:                               ; @.str.1
	.asciz	"too-long"

	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
