	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hisax_register                 ## -- Begin function hisax_register
	.p2align	4, 0x90
_hisax_register:                        ## @hisax_register
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HISAX_MAX_CARDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movq	%rdi, %r15
	movq	_cards@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movl	$16, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdi,%r14)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	addq	$24, %r14
	cmpq	%rbx, %rax
	jne	LBB0_2
LBB0_4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	_ISDN_CTYPE_DYNAMIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi,%r14)
	movl	%ecx, -16(%rdi,%r14)
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	movl	%ebx, %ecx
	callq	_sprintf
	movq	_nrcards@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	32(%r15), %ecx
	movq	_hisax_setup_card_dynamic@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r12d, %r12d
	movl	%ebx, %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_checkcard
	movq	_cards@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	-8(%rcx,%r14), %rbx
	movq	%rbx, 24(%r15)
	movq	%r15, 24(%rbx)
	movq	_hisax_cardmsg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	leaq	16(%rbx), %rdi
	movq	_hisax_bh@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_hisax_d_l2l1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	_hisax_bc_setstack@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%rbx), %rdx
	movl	%ecx, 4(%rdx)
	movq	_hisax_bc_close@GOTPCREL(%rip), %r8
	movl	(%r8), %esi
	movl	%esi, (%rdx)
	movq	_hisax_b_l1l2@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdi
	movl	%esi, (%rdi)
	movq	16(%r15), %rsi
	movq	%rdi, (%rsi)
	movl	(%rax), %eax
	movq	(%rbx), %rsi
	movl	%eax, 12(%rsi)
	movl	(%r8), %eax
	movl	%eax, 8(%rsi)
	movl	(%rdx), %eax
	movq	8(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	16(%r15), %rax
	movq	%rcx, 8(%rax)
	movq	_hisax_d_l1l2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	leaq	4(%r15), %rdi
	callq	_skb_queue_head_init
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_clear_bit
	jmp	LBB0_9
LBB0_7:
	movq	$0, (%rcx,%r14)
	movq	_nrcards@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HISAX_MAX_CARDS,4,2            ## @HISAX_MAX_CARDS
	.comm	_cards,8,3                      ## @cards
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ISDN_CTYPE_DYNAMIC,8,3         ## @ISDN_CTYPE_DYNAMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%d"

	.comm	_nrcards,4,2                    ## @nrcards
	.comm	_hisax_setup_card_dynamic,4,2   ## @hisax_setup_card_dynamic
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_hisax_cardmsg,4,2              ## @hisax_cardmsg
	.comm	_hisax_bh,4,2                   ## @hisax_bh
	.comm	_hisax_d_l2l1,4,2               ## @hisax_d_l2l1
	.comm	_hisax_bc_setstack,4,2          ## @hisax_bc_setstack
	.comm	_hisax_bc_close,4,2             ## @hisax_bc_close
	.comm	_hisax_b_l1l2,4,2               ## @hisax_b_l1l2
	.comm	_hisax_d_l1l2,4,2               ## @hisax_d_l1l2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hisax_register                 ; -- Begin function hisax_register
	.p2align	2
_hisax_register:                        ; @hisax_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _HISAX_MAX_CARDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HISAX_MAX_CARDS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	w21, #0
	mov	x22, #0
Lloh6:
	adrp	x23, _cards@GOTPAGE
Lloh7:
	ldr	x23, [x23, _cards@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x9, x9, x9, lsl #1
	lsl	x9, x9, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x8, x22
	ldr	x11, [x10, #16]
	cbz	x11, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #24
	add	w21, w21, #1
	cmp	x9, x22
	b.ne	LBB0_2
LBB0_4:
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldr	x8, [sp, #24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
Lloh13:
	adrp	x8, _ISDN_CTYPE_DYNAMIC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ISDN_CTYPE_DYNAMIC@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x10, #16]
	str	w3, [x10]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #4
	mov	x3, x21
	bl	_sprintf
Lloh18:
	adrp	x24, _nrcards@GOTPAGE
Lloh19:
	ldr	x24, [x24, _nrcards@GOTPAGEOFF]
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
	ldr	w3, [x19, #32]
Lloh20:
	adrp	x8, _hisax_setup_card_dynamic@GOTPAGE
Lloh21:
	ldr	x8, [x8, _hisax_setup_card_dynamic@GOTPAGEOFF]
Lloh22:
	ldr	w4, [x8]
	add	x1, sp, #4
	mov	x0, x21
	mov	x2, #0
	bl	_checkcard
	ldr	x8, [x23]
	add	x8, x8, x22
	cbz	w0, LBB0_10
; %bb.9:
	ldr	x21, [x8, #8]
	str	x21, [x19, #24]
	str	x19, [x21, #24]
Lloh23:
	adrp	x8, _hisax_cardmsg@GOTPAGE
Lloh24:
	ldr	x8, [x8, _hisax_cardmsg@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x21, #20]
	add	x0, x21, #16
Lloh26:
	adrp	x8, _hisax_bh@GOTPAGE
Lloh27:
	ldr	x8, [x8, _hisax_bh@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh29:
	adrp	x8, _hisax_d_l2l1@GOTPAGE
Lloh30:
	ldr	x8, [x8, _hisax_d_l2l1@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	x9, [x21, #8]
	ldr	x9, [x9]
Lloh32:
	adrp	x10, _hisax_bc_setstack@GOTPAGE
Lloh33:
	ldr	x10, [x10, _hisax_bc_setstack@GOTPAGEOFF]
	str	w8, [x9]
	ldr	w8, [x10]
	ldr	x9, [x21]
Lloh34:
	adrp	x11, _hisax_bc_close@GOTPAGE
Lloh35:
	ldr	x11, [x11, _hisax_bc_close@GOTPAGEOFF]
	ldr	w12, [x11]
	stp	w12, w8, [x9]
Lloh36:
	adrp	x8, _hisax_b_l1l2@GOTPAGE
Lloh37:
	ldr	x8, [x8, _hisax_b_l1l2@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	x12, [x20]
	str	w9, [x12]
	ldr	x9, [x19, #16]
	str	x12, [x9]
	ldr	w9, [x10]
	ldr	x10, [x21]
	ldr	w11, [x11]
	stp	w11, w9, [x10, #8]
	ldr	w8, [x8]
	ldr	x9, [x20, #8]
	str	w8, [x9]
	ldr	x8, [x19, #16]
	str	x9, [x8, #8]
Lloh38:
	adrp	x8, _hisax_d_l1l2@GOTPAGE
Lloh39:
	ldr	x8, [x8, _hisax_d_l1l2@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	add	x0, x19, #4
	bl	_skb_queue_head_init
	mov	w0, #0
	mov	x1, x19
	bl	_clear_bit
	mov	w0, #0
	b	LBB0_6
LBB0_10:
	str	xzr, [x8, #16]
	ldr	w8, [x24]
	sub	w8, w8, #1
	str	w8, [x24]
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_HISAX_MAX_CARDS,4,2            ; @HISAX_MAX_CARDS
	.comm	_cards,8,3                      ; @cards
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ISDN_CTYPE_DYNAMIC,8,3         ; @ISDN_CTYPE_DYNAMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%d"

	.comm	_nrcards,4,2                    ; @nrcards
	.comm	_hisax_setup_card_dynamic,4,2   ; @hisax_setup_card_dynamic
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_hisax_cardmsg,4,2              ; @hisax_cardmsg
	.comm	_hisax_bh,4,2                   ; @hisax_bh
	.comm	_hisax_d_l2l1,4,2               ; @hisax_d_l2l1
	.comm	_hisax_bc_setstack,4,2          ; @hisax_bc_setstack
	.comm	_hisax_bc_close,4,2             ; @hisax_bc_close
	.comm	_hisax_b_l1l2,4,2               ; @hisax_b_l1l2
	.comm	_hisax_d_l1l2,4,2               ; @hisax_d_l1l2
.subsections_via_symbols
