	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icn_pollbchan_send
_icn_pollbchan_send:                    ## @icn_pollbchan_send
	.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
                                        ## kill: def $edi killed $edi def $rdi
	xorl	%r14d, %r14d
	cmpq	$0, 64(%rsi)
	setne	%r15b
	movq	%rsi, %r13
	movq	48(%rsi), %rax
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movslq	%edi, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_3
## %bb.1:
	movq	24(%r13), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rdi
	addq	56(%r13), %rdi
	callq	_skb_queue_empty
	testl	%eax, %eax
	jne	LBB0_27
LBB0_3:
	movb	%r15b, %r14b
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r14,2), %esi
	movq	%r13, %rdi
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	callq	_icn_trymaplock_channel
	testq	%rax, %rax
	je	LBB0_27
## %bb.4:
	movq	_sbfree@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.6:
	leaq	8(%r13), %r15
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	andl	$2, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r13), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	56(%r13), %rdi
	addq	-72(%rbp), %rdi                 ## 8-byte Folded Reload
	callq	_skb_queue_empty
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%r13), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_26
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	16(%r13), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	$1, (%rax,%rbx,8)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	24(%r13), %rax
	movq	(%rax,%rbx,8), %r14
	testq	%r14, %r14
	jne	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	56(%r13), %rdi
	addq	-72(%rbp), %rdi                 ## 8-byte Folded Reload
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_26
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_skb_pull
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r14), %eax
	jmp	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rdx,4)
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r14), %eax
	movq	_ICN_FRAGSIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$0, %edi
	movl	$255, %eax
	cmovgl	%eax, %edi
	movq	%r14, %rbx
	cmovgq	%rcx, %rbx
	movq	_sbuf_f@GOTPCREL(%rip), %rsi
	callq	_writeb
	movq	%r15, %r13
	movslq	(%rbx), %r15
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	%r15d, %edi
	movq	_sbuf_l@GOTPCREL(%rip), %rsi
	callq	_writeb
	movl	4(%r14), %esi
	movq	_sbuf_d@GOTPCREL(%rip), %rdi
	movl	%r15d, %edx
	callq	_memcpy_toio
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_skb_pull
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_icn_maprelease_channel
	movq	%r13, %r12
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	48(%rbx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	subq	%r15, (%rax,%rcx,8)
	cmpl	$0, (%r14)
	movq	%rbx, %r13
	movq	24(%rbx), %rax
	je	LBB0_19
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, (%rax,%rcx,8)
	movq	16(%r13), %rax
	movq	$0, (%rax,%rcx,8)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r12, %r15
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %r15
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	$0, (%rax,%rcx,8)
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rbx
	movq	16(%r13), %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	$0, (%rax,%r12,8)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_dev_kfree_skb
	movq	(%r13), %rax
	cmpl	$0, (%rax,%r12,4)
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_ISDN_STAT_BSENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -76(%rbp)
	movl	40(%r13), %ecx
	movl	%ecx, -80(%rbp)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, -88(%rbp)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -84(%rbp)
	leaq	-88(%rbp), %rdi
	callq	*32(%r13)
LBB0_24:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_icn_trymaplock_channel
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_sbfree@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_7
	jmp	LBB0_26
LBB0_5:
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	andl	$2, %r12d
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_26
LBB0_11:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_26:
	movq	%r13, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_icn_maprelease_channel
LBB0_27:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sbfree,8,3                     ## @sbfree
	.comm	_ICN_FRAGSIZE,4,2               ## @ICN_FRAGSIZE
	.comm	_sbuf_f,4,2                     ## @sbuf_f
	.comm	_sbuf_l,4,2                     ## @sbuf_l
	.comm	_sbuf_d,4,2                     ## @sbuf_d
	.comm	_sbnext,4,2                     ## @sbnext
	.comm	_ISDN_STAT_BSENT,4,2            ## @ISDN_STAT_BSENT
	.no_dead_strip	_icn_pollbchan_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icn_pollbchan_send
_icn_pollbchan_send:                    ; @icn_pollbchan_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #64]
	cmp	x8, #0
	cset	w21, ne
	ldr	x8, [x1, #48]
	sxtw	x24, w20
	ldr	x8, [x8, w0, sxtw #3]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x24, lsl #3]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #56]
	add	x0, x8, x24, lsl #2
	bl	_skb_queue_empty
	cbnz	w0, LBB0_26
LBB0_3:
	add	w22, w20, w21, lsl #1
	mov	x0, x19
	mov	x1, x22
	bl	_icn_trymaplock_channel
	cbz	x0, LBB0_26
; %bb.4:
Lloh0:
	adrp	x8, _sbfree@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sbfree@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_23
; %bb.5:
	add	x23, x19, #8
	and	w21, w22, #0x2
	lsl	x26, x24, #3
Lloh3:
	adrp	x25, _ICN_FRAGSIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ICN_FRAGSIZE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x24, lsl #3]
	cbnz	x8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #56]
	add	x0, x8, x24, lsl #2
	bl	_skb_queue_empty
	cbz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x24, lsl #3]
	cbz	x8, LBB0_25
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #16]
	ldr	x9, [x8, x24, lsl #3]
	cbnz	x9, LBB0_24
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w9, #1
	str	x9, [x8, x26]
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19, #24]
	ldr	x27, [x8, x26]
	cbnz	x27, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #56]
	add	x0, x8, x24, lsl #2
	bl	_skb_dequeue
	cbz	x0, LBB0_25
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, x0
	mov	w1, #1
	bl	_skb_pull
	ldr	x8, [x0]
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x27]
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x19]
	str	w8, [x9, x24, lsl #2]
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x27]
	ldr	w9, [x25]
	cmp	w8, w9
	mov	w8, #255
	csel	w0, w8, wzr, gt
	csel	x28, x25, x27, gt
Lloh5:
	adrp	x1, _sbuf_f@GOTPAGE
Lloh6:
	ldr	x1, [x1, _sbuf_f@GOTPAGEOFF]
	bl	_writeb
	ldrsw	x28, [x28]
	mov	x0, x28
Lloh7:
	adrp	x1, _sbuf_l@GOTPAGE
Lloh8:
	ldr	x1, [x1, _sbuf_l@GOTPAGEOFF]
	bl	_writeb
	ldr	w1, [x27, #4]
Lloh9:
	adrp	x0, _sbuf_d@GOTPAGE
Lloh10:
	ldr	x0, [x0, _sbuf_d@GOTPAGEOFF]
	mov	x2, x28
	bl	_memcpy_toio
	mov	x0, x27
	mov	x1, x28
	bl	_skb_pull
	mov	x0, x19
	mov	x1, x21
	bl	_icn_maprelease_channel
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #48]
	ldr	x9, [x8, x26]
	sub	x9, x9, x28
	str	x9, [x8, x26]
	ldr	w9, [x27]
	ldr	x8, [x19, #24]
	cbz	w9, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	str	x27, [x8, x26]
	ldr	x8, [x19, #16]
	str	xzr, [x8, x26]
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	b	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x8, x24, lsl #3]
	cbz	x9, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x8, x24, lsl #3]
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #16]
	str	xzr, [x8, x24, lsl #3]
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	mov	x0, x27
	bl	_dev_kfree_skb
	ldr	x8, [x19]
	ldr	w9, [x8, x24, lsl #2]
	cbz	w9, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh11:
	adrp	x9, _ISDN_STAT_BSENT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ISDN_STAT_BSENT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x9]
	ldr	w9, [x19, #40]
	stp	w9, w10, [sp, #8]
	str	w20, [sp]
	ldr	w8, [x8, x24, lsl #2]
	str	w8, [sp, #4]
	ldr	x8, [x19, #32]
	mov	x0, sp
	blr	x8
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_icn_trymaplock_channel
	cbz	x0, LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh14:
	adrp	x8, _sbfree@GOTPAGE
Lloh15:
	ldr	x8, [x8, _sbfree@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbnz	x8, LBB0_6
	b	LBB0_25
LBB0_23:
	and	w21, w22, #0x2
	b	LBB0_25
LBB0_24:
	mov	x0, x23
	bl	_spin_unlock_irqrestore
LBB0_25:
	mov	x0, x19
	mov	x1, x21
	bl	_icn_maprelease_channel
LBB0_26:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_sbfree,8,3                     ; @sbfree
	.comm	_ICN_FRAGSIZE,4,2               ; @ICN_FRAGSIZE
	.comm	_sbuf_f,4,2                     ; @sbuf_f
	.comm	_sbuf_l,4,2                     ; @sbuf_l
	.comm	_sbuf_d,4,2                     ; @sbuf_d
	.comm	_sbnext,4,2                     ; @sbnext
	.comm	_ISDN_STAT_BSENT,4,2            ; @ISDN_STAT_BSENT
	.no_dead_strip	_icn_pollbchan_send
.subsections_via_symbols
