	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_em28xx_isoc_dvb_max_packetsize ## -- Begin function em28xx_isoc_dvb_max_packetsize
	.p2align	4, 0x90
_em28xx_isoc_dvb_max_packetsize:        ## @em28xx_isoc_dvb_max_packetsize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	_CHIP_ID_EM2874@GOTPCREL(%rip), %rcx
	movl	$564, %ebx                      ## imm = 0x234
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_EM28XX_R01_CHIPCFG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_em28xx_read_reg
	movq	_EM28XX_CHIPCFG2_TS_PACKETSIZE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_3
## %bb.2:
	imull	$-188, %eax, %ebx
	addl	$752, %ebx                      ## imm = 0x2F0
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_em28xx_coredbg
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_ID_EM2874,8,3             ## @CHIP_ID_EM2874
	.comm	_EM28XX_R01_CHIPCFG2,4,2        ## @EM28XX_R01_CHIPCFG2
	.comm	_EM28XX_CHIPCFG2_TS_PACKETSIZE_MASK,4,2 ## @EM28XX_CHIPCFG2_TS_PACKETSIZE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dvb max packet size=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_em28xx_isoc_dvb_max_packetsize ; -- Begin function em28xx_isoc_dvb_max_packetsize
	.p2align	2
_em28xx_isoc_dvb_max_packetsize:        ; @em28xx_isoc_dvb_max_packetsize
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CHIP_ID_EM2874@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_ID_EM2874@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _EM28XX_R01_CHIPCFG2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EM28XX_R01_CHIPCFG2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_em28xx_read_reg
Lloh6:
	adrp	x8, _EM28XX_CHIPCFG2_TS_PACKETSIZE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EM28XX_CHIPCFG2_TS_PACKETSIZE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.2:
	mov	w9, #-188
	mul	w8, w8, w9
	add	w19, w8, #752
	b	LBB0_4
LBB0_3:
	mov	w19, #564
LBB0_4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_em28xx_coredbg
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_ID_EM2874,8,3             ; @CHIP_ID_EM2874
	.comm	_EM28XX_R01_CHIPCFG2,4,2        ; @EM28XX_R01_CHIPCFG2
	.comm	_EM28XX_CHIPCFG2_TS_PACKETSIZE_MASK,4,2 ; @EM28XX_CHIPCFG2_TS_PACKETSIZE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dvb max packet size=%d\n"

.subsections_via_symbols
