	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_net_ule_new_payload
_dvb_net_ule_new_payload:               ## @dvb_net_ule_new_payload
	.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
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	cmpl	$1, %esi
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_warn
	movq	24(%rbx), %rax
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	movq	%rcx, (%rax)
	movq	_TS_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 40(%rbx)
	jmp	LBB0_10
LBB0_2:
	movq	24(%rbx), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jne	LBB0_6
## %bb.3:
	movq	8(%rbx), %r8
	movl	(%r8), %edi
	shll	$8, %edi
	orl	4(%r8), %edi
	movl	%edi, %ecx
	andl	$32768, %ecx                    ## imm = 0x8000
	movl	%ecx, %r9d
	shrl	$15, %r9d
	movl	%edi, %edx
	andl	$32767, %edx                    ## imm = 0x7FFF
	testl	%ecx, %ecx
	cmovel	%edi, %edx
	movl	%edx, (%rax)
	movl	%r9d, 8(%rax)
	cmpl	$4, %edx
	jg	LBB0_5
## %bb.4:
	movl	32(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_pr_warn
	movq	32(%rbx), %rax
	incl	8(%rax)
	incl	4(%rax)
	movq	24(%rbx), %rax
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	movq	%rcx, (%rax)
	jmp	LBB0_9
LBB0_5:
	addl	$-2, %esi
	movl	%esi, (%rbx)
	addq	$8, %r8
	movq	%r8, 8(%rbx)
LBB0_6:
	leal	2(%rdx), %ecx
	movl	%ecx, 12(%rax)
	testl	%esi, %esi
	je	LBB0_9
## %bb.7:
	cmpl	$1, %esi
	jne	LBB0_12
## %bb.8:
	incl	%edx
	movl	%edx, 12(%rax)
	movq	8(%rbx), %rcx
	movl	(%rcx), %edx
	shll	$8, %edx
	movl	%edx, 16(%rax)
	movl	$1, 20(%rax)
	movl	$0, (%rbx)
	addq	$4, %rcx
	movq	%rcx, 8(%rbx)
LBB0_9:
	movl	$1, 16(%rbx)
	movq	_TS_SZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, 40(%rbx)
	incl	32(%rax)
LBB0_10:
	movl	$1, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	cmpl	$0, 20(%rax)
	je	LBB0_14
## %bb.13:
	movl	$0, 20(%rax)
	movq	8(%rbx), %rcx
	movl	(%rcx), %edi
	orl	%edi, 16(%rax)
	addq	$4, %rcx
	movq	%rcx, 8(%rbx)
	movl	$-1, %eax
	jmp	LBB0_15
LBB0_14:
	movq	8(%rbx), %rcx
	movl	(%rcx), %edi
	shll	$8, %edi
	orl	4(%rcx), %edi
	movl	%edi, 16(%rax)
	addq	$8, %rcx
	movq	%rcx, 8(%rbx)
	movl	$-2, %eax
LBB0_15:
	addl	%eax, %esi
	movl	%esi, (%rbx)
	movslq	%edx, %rdi
	movq	_ETH_HLEN@GOTPCREL(%rip), %r14
	addq	(%r14), %rdi
	movq	_ETH_ALEN@GOTPCREL(%rip), %r15
	addq	(%r15), %rdi
	callq	_dev_alloc_skb
	movq	24(%rbx), %rcx
	movq	%rax, 24(%rcx)
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	(%rcx), %edx
	movl	%edx, 12(%rcx)
	movq	32(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movq	%rax, %rdi
	callq	_skb_reserve
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_17:
	movq	32(%rbx), %rax
	movl	12(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_notice
	movq	32(%rbx), %rax
	incl	(%rax)
	movl	$-1, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid payload packing: only %d bytes left in TS.  Resyncing.\n"

	.comm	_TS_SZ,8,3                      ## @TS_SZ
L_.str.1:                               ## @.str.1
	.asciz	"%lu: Invalid ULE SNDU length %u. Resyncing.\n"

	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
L_.str.2:                               ## @.str.2
	.asciz	"%s: Memory squeeze, dropping packet.\n"

	.no_dead_strip	_dvb_net_ule_new_payload
.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 dvb_net_ule_new_payload
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dvb_net_ule_new_payload:               ; @dvb_net_ule_new_payload
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	w1, [x0]
	cmp	w1, #1
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	ldr	x8, [x19, #24]
Lloh2:
	adrp	x9, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
Lloh4:
	adrp	x9, _TS_SZ@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TS_SZ@GOTPAGEOFF]
	str	d0, [x8]
Lloh6:
	ldr	w8, [x9]
	ldr	w9, [x19, #40]
	add	w8, w9, w8
	str	w8, [x19, #40]
	mov	w0, #1
	b	LBB0_16
LBB0_2:
	ldr	x8, [x19, #24]
	ldr	w9, [x8]
	cbnz	w9, LBB0_6
; %bb.3:
	ldr	x10, [x19, #8]
	ldp	w9, w11, [x10]
	orr	w9, w11, w9, lsl #8
	ands	w11, w9, #0x8000
	lsr	w11, w11, #15
	and	w12, w9, #0x7fff
	csel	w9, w9, w12, eq
	str	w9, [x8]
	str	w11, [x8, #8]
	cmp	w9, #4
	b.gt	LBB0_5
; %bb.4:
	ldr	w1, [x8, #32]
	str	x9, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
	ldp	x9, x8, [x19, #24]
	ldur	d0, [x8, #4]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	stur	d0, [x8, #4]
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x9]
	mov	w0, #1
	str	w0, [x19, #16]
Lloh11:
	adrp	x8, _TS_SZ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TS_SZ@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w10, [x19, #40]
	add	w8, w10, w8
	str	w8, [x19, #40]
	ldr	w8, [x9, #32]
	add	w8, w8, #1
	str	w8, [x9, #32]
	b	LBB0_16
LBB0_5:
	sub	w1, w1, #2
	str	w1, [x19]
	add	x10, x10, #8
	str	x10, [x19, #8]
LBB0_6:
	add	w10, w9, #2
	str	w10, [x8, #12]
	cbz	w1, LBB0_9
; %bb.7:
	cmp	w1, #1
	b.ne	LBB0_10
; %bb.8:
	add	w9, w9, #1
	str	w9, [x8, #12]
	ldr	x9, [x19, #8]
	ldr	w10, [x9], #4
	lsl	w10, w10, #8
	mov	w11, #1
	stp	w10, w11, [x8, #16]
	str	wzr, [x19]
	str	x9, [x19, #8]
LBB0_9:
	mov	w0, #1
	str	w0, [x19, #16]
Lloh14:
	adrp	x9, _TS_SZ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TS_SZ@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	ldr	w10, [x19, #40]
	add	w9, w10, w9
	str	w9, [x19, #40]
	ldr	w9, [x8, #32]
	add	w9, w9, #1
	str	w9, [x8, #32]
	b	LBB0_16
LBB0_10:
	ldr	w10, [x8, #20]
	cbz	w10, LBB0_12
; %bb.11:
	str	wzr, [x8, #20]
	ldr	x10, [x19, #8]
	ldr	w11, [x10], #4
	ldr	w12, [x8, #16]
	orr	w11, w12, w11
	str	w11, [x8, #16]
	str	x10, [x19, #8]
	mov	w8, #-1
	b	LBB0_13
LBB0_12:
	ldr	x10, [x19, #8]
	ldp	w11, w12, [x10]
	orr	w11, w12, w11, lsl #8
	str	w11, [x8, #16]
	add	x8, x10, #8
	str	x8, [x19, #8]
	mov	w8, #-2
LBB0_13:
	add	w8, w1, w8
	str	w8, [x19]
Lloh17:
	adrp	x20, _ETH_HLEN@GOTPAGE
Lloh18:
	ldr	x20, [x20, _ETH_HLEN@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x8, x8, w9, sxtw
Lloh19:
	adrp	x21, _ETH_ALEN@GOTPAGE
Lloh20:
	ldr	x21, [x21, _ETH_ALEN@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x8, x9
	bl	_dev_alloc_skb
	ldr	x8, [x19, #24]
	str	x0, [x8, #24]
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w9, [x8]
	str	w9, [x8, #12]
	ldr	x8, [x19, #32]
	str	x8, [x0]
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_skb_reserve
	mov	w0, #0
	b	LBB0_16
LBB0_15:
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #12]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_notice
	ldr	x8, [x19, #32]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	w0, #-1
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdrp	Lloh9, Lloh11
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid payload packing: only %d bytes left in TS.  Resyncing.\n"

	.comm	_TS_SZ,8,3                      ; @TS_SZ
l_.str.1:                               ; @.str.1
	.asciz	"%lu: Invalid ULE SNDU length %u. Resyncing.\n"

	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
l_.str.2:                               ; @.str.2
	.asciz	"%s: Memory squeeze, dropping packet.\n"

	.no_dead_strip	_dvb_net_ule_new_payload
.subsections_via_symbols
