	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st5481B_mode
_st5481B_mode:                          ## @st5481B_mode
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movl	(%rdi), %edx
	incl	%edx
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	movl	%ebx, %ecx
	callq	_DBG
	cmpl	%ebx, 4(%r15)
	je	LBB0_19
## %bb.1:
	movl	%ebx, 4(%r15)
	movq	48(%r15), %rax
	movl	(%rax), %edi
	callq	_usb_unlink_urb
	movq	48(%r15), %rax
	movl	4(%rax), %edi
	callq	_usb_unlink_urb
	movq	$0, 40(%r15)
	leaq	8(%r15), %rdi
	movl	%ebx, %esi
	callq	_st5481_in_mode
	movl	4(%r15), %eax
	movq	_L1_MODE_NULL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.11:
	movq	_FFMSK_B1@GOTPCREL(%rip), %rax
	movslq	(%r15), %rsi
	addq	%rsi, %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_st5481_usb_device_ctrl_msg
	movq	_OUT_B1_COUNTER@GOTPCREL(%rip), %rax
	movslq	(%r15), %rsi
	addq	%rsi, %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_st5481_usb_device_ctrl_msg
	cmpl	$4, (%r14)
	jne	LBB0_16
## %bb.12:
	cmpl	$0, (%r15)
	je	LBB0_13
## %bb.15:
	movq	_B2_LED@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_2:
	movq	_L1_MODE_TRANS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.3:
	movq	_HDLC_BITREVERSE@GOTPCREL(%rip), %rcx
	movq	_L1_MODE_HDLC_56K@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpl	(%rdx), %eax
	jne	LBB0_5
## %bb.4:
	movq	_HDLC_56KBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_5:
	orl	(%rcx), %esi
	leaq	32(%r15), %rdi
	callq	_isdnhdlc_out_init
LBB0_6:
	movl	(%r15), %eax
	leal	(%rax,%rax), %esi
	addl	$2, %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_st5481_usb_pipe_reset
	movq	_FFMSK_B1@GOTPCREL(%rip), %rax
	movslq	(%r15), %rsi
	addq	%rsi, %rsi
	addq	(%rax), %rsi
	movq	_OUT_UP@GOTPCREL(%rip), %rax
	movq	_OUT_DOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	addl	(%rax), %edx
	movq	_OUT_UNDERRUN@GOTPCREL(%rip), %rax
	addl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_st5481_usb_device_ctrl_msg
	movq	_OUT_B1_COUNTER@GOTPCREL(%rip), %rax
	movslq	(%r15), %rsi
	addq	%rsi, %rsi
	addq	(%rax), %rsi
	movq	_st5481B_start_xfer@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r14, %rdi
	movl	$32, %edx
	movq	%r15, %r8
	callq	_st5481_usb_device_ctrl_msg
	cmpl	$4, (%r14)
	jne	LBB0_19
## %bb.7:
	cmpl	$0, (%r15)
	je	LBB0_8
## %bb.10:
	movq	_B2_LED@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_16:
	movq	_GPIO_OUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	4(%r14), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_st5481_usb_device_ctrl_msg
	jmp	LBB0_17
LBB0_13:
	movq	_B1_LED@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%r14)
LBB0_17:
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_dev_kfree_skb_any
	movq	$0, 24(%r15)
	jmp	LBB0_19
LBB0_8:
	movq	_B1_LED@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"B%d,mode=%d"

	.comm	_L1_MODE_NULL,4,2               ## @L1_MODE_NULL
	.comm	_L1_MODE_TRANS,4,2              ## @L1_MODE_TRANS
	.comm	_HDLC_BITREVERSE,4,2            ## @HDLC_BITREVERSE
	.comm	_L1_MODE_HDLC_56K,4,2           ## @L1_MODE_HDLC_56K
	.comm	_HDLC_56KBIT,4,2                ## @HDLC_56KBIT
	.comm	_FFMSK_B1,8,3                   ## @FFMSK_B1
	.comm	_OUT_UP,4,2                     ## @OUT_UP
	.comm	_OUT_DOWN,4,2                   ## @OUT_DOWN
	.comm	_OUT_UNDERRUN,4,2               ## @OUT_UNDERRUN
	.comm	_OUT_B1_COUNTER,8,3             ## @OUT_B1_COUNTER
	.comm	_st5481B_start_xfer,8,3         ## @st5481B_start_xfer
	.comm	_B1_LED,4,2                     ## @B1_LED
	.comm	_B2_LED,4,2                     ## @B2_LED
	.comm	_GPIO_OUT,8,3                   ## @GPIO_OUT
	.no_dead_strip	_st5481B_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st5481B_mode
_st5481B_mode:                          ; @st5481B_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	w8, [x0]
	add	w2, w8, #1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	mov	x3, x21
	bl	_DBG
	ldr	w8, [x19, #4]
	cmp	w8, w21
	b.eq	LBB0_16
; %bb.1:
	str	w21, [x19, #4]
	ldr	x8, [x19, #48]
	ldr	w0, [x8]
	bl	_usb_unlink_urb
	ldr	x8, [x19, #48]
	ldr	w0, [x8, #4]
	bl	_usb_unlink_urb
	str	xzr, [x19, #40]
	add	x0, x19, #8
	mov	x1, x21
	bl	_st5481_in_mode
	ldr	w8, [x19, #4]
Lloh2:
	adrp	x9, _L1_MODE_NULL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _L1_MODE_NULL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.2:
Lloh5:
	adrp	x8, _FFMSK_B1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FFMSK_B1@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldrsw	x9, [x19]
	add	x1, x8, x9, lsl #1
	mov	x0, x20
	mov	w2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_st5481_usb_device_ctrl_msg
Lloh8:
	adrp	x8, _OUT_B1_COUNTER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OUT_B1_COUNTER@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldrsw	x9, [x19]
	add	x1, x8, x9, lsl #1
	mov	x0, x20
	mov	w2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_st5481_usb_device_ctrl_msg
	ldr	w8, [x20]
	cmp	w8, #4
	b.ne	LBB0_10
; %bb.3:
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.4:
Lloh11:
	adrp	x8, _B2_LED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _B2_LED@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
Lloh13:
	adrp	x9, _L1_MODE_TRANS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _L1_MODE_TRANS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.6:
Lloh16:
	adrp	x9, _HDLC_BITREVERSE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _HDLC_BITREVERSE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, _L1_MODE_HDLC_56K@GOTPAGE
Lloh20:
	ldr	x10, [x10, _L1_MODE_HDLC_56K@GOTPAGEOFF]
Lloh21:
	adrp	x11, _HDLC_56KBIT@GOTPAGE
Lloh22:
	ldr	x11, [x11, _HDLC_56KBIT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
Lloh24:
	ldr	w11, [x11]
	cmp	w8, w10
	csel	w8, w11, wzr, eq
	orr	w1, w8, w9
	add	x0, x19, #32
	bl	_isdnhdlc_out_init
LBB0_7:
	ldr	w8, [x19]
	lsl	w8, w8, #1
	add	w1, w8, #2
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	bl	_st5481_usb_pipe_reset
Lloh25:
	adrp	x8, _FFMSK_B1@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FFMSK_B1@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldrsw	x9, [x19]
	add	x1, x8, x9, lsl #1
Lloh28:
	adrp	x8, _OUT_UP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _OUT_UP@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _OUT_DOWN@GOTPAGE
Lloh32:
	ldr	x9, [x9, _OUT_DOWN@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
Lloh34:
	adrp	x10, _OUT_UNDERRUN@GOTPAGE
Lloh35:
	ldr	x10, [x10, _OUT_UNDERRUN@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	add	w8, w9, w8
	add	w2, w8, w10
	mov	x0, x20
	mov	x3, #0
	mov	x4, #0
	bl	_st5481_usb_device_ctrl_msg
Lloh37:
	adrp	x8, _OUT_B1_COUNTER@GOTPAGE
Lloh38:
	ldr	x8, [x8, _OUT_B1_COUNTER@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	ldrsw	x9, [x19]
	add	x1, x8, x9, lsl #1
Lloh40:
	adrp	x8, _st5481B_start_xfer@GOTPAGE
Lloh41:
	ldr	x8, [x8, _st5481B_start_xfer@GOTPAGEOFF]
Lloh42:
	ldr	x3, [x8]
	mov	x0, x20
	mov	w2, #32
	mov	x4, x19
	bl	_st5481_usb_device_ctrl_msg
	ldr	w8, [x20]
	cmp	w8, #4
	b.ne	LBB0_16
; %bb.8:
	ldr	w8, [x19]
	cbz	w8, LBB0_14
; %bb.9:
Lloh43:
	adrp	x8, _B2_LED@GOTPAGE
Lloh44:
	ldr	x8, [x8, _B2_LED@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
Lloh45:
	adrp	x8, _GPIO_OUT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _GPIO_OUT@GOTPAGEOFF]
Lloh47:
	ldr	x1, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x20
	mov	x3, #0
	mov	x4, #0
	bl	_st5481_usb_device_ctrl_msg
	ldr	x0, [x19, #24]
	cbnz	x0, LBB0_13
	b	LBB0_16
LBB0_11:
Lloh48:
	adrp	x8, _B1_LED@GOTPAGE
Lloh49:
	ldr	x8, [x8, _B1_LED@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	bic	w8, w9, w8
	str	w8, [x20, #4]
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_16
LBB0_13:
	bl	_dev_kfree_skb_any
	str	xzr, [x19, #24]
	b	LBB0_16
LBB0_14:
Lloh50:
	adrp	x8, _B1_LED@GOTPAGE
Lloh51:
	ldr	x8, [x8, _B1_LED@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"B%d,mode=%d"

	.comm	_L1_MODE_NULL,4,2               ; @L1_MODE_NULL
	.comm	_L1_MODE_TRANS,4,2              ; @L1_MODE_TRANS
	.comm	_HDLC_BITREVERSE,4,2            ; @HDLC_BITREVERSE
	.comm	_L1_MODE_HDLC_56K,4,2           ; @L1_MODE_HDLC_56K
	.comm	_HDLC_56KBIT,4,2                ; @HDLC_56KBIT
	.comm	_FFMSK_B1,8,3                   ; @FFMSK_B1
	.comm	_OUT_UP,4,2                     ; @OUT_UP
	.comm	_OUT_DOWN,4,2                   ; @OUT_DOWN
	.comm	_OUT_UNDERRUN,4,2               ; @OUT_UNDERRUN
	.comm	_OUT_B1_COUNTER,8,3             ; @OUT_B1_COUNTER
	.comm	_st5481B_start_xfer,8,3         ; @st5481B_start_xfer
	.comm	_B1_LED,4,2                     ; @B1_LED
	.comm	_B2_LED,4,2                     ; @B2_LED
	.comm	_GPIO_OUT,8,3                   ; @GPIO_OUT
	.no_dead_strip	_st5481B_mode
.subsections_via_symbols
