	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdc_ncm_update_rxtx_max
_cdc_ncm_update_rxtx_max:               ## @cdc_ncm_update_rxtx_max
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	32(%rdi), %rax
	movq	(%rax), %r13
	movq	32(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax), %r12d
	callq	_cdc_ncm_check_rx_max
	movl	%eax, %ebx
	cmpl	(%r13), %eax
	je	LBB0_5
## %bb.1:
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movl	%eax, -44(%rbp)
	movq	24(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_info
	movq	_USB_CDC_SET_NTB_INPUT_SIZE@GOTPCREL(%rip), %rax
	movq	_USB_TYPE_CLASS@GOTPCREL(%rip), %rcx
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_USB_RECIP_INTERFACE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	$4, (%rsp)
	leaq	-44(%rbp), %r9
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	callq	_usbnet_write_cmd
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movl	%ebx, (%r13)
	jmp	LBB0_4
LBB0_2:
	movq	24(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
LBB0_4:
	movl	(%r13), %ebx
LBB0_5:
	movslq	%ebx, %rax
	cmpq	%rax, (%r15)
	je	LBB0_8
## %bb.6:
	movq	%rax, (%r15)
	movl	20(%r15), %edi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_usbnet_unlink_rx_urbs
LBB0_8:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_cdc_ncm_check_tx_max
	movl	%eax, %ebx
	cmpl	4(%r13), %eax
	je	LBB0_10
## %bb.9:
	movq	24(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_info
LBB0_10:
	movl	24(%r13), %edi
	callq	_le32_to_cpu
	cmpl	%eax, %ebx
	je	LBB0_12
## %bb.11:
	movl	12(%r15), %esi
	movl	16(%r15), %edi
	movl	$1, %edx
	callq	_usb_maxpacket
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	cmpl	$1, %edx
	adcl	$0, %ebx
LBB0_12:
	movl	20(%r15), %edi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	cmpl	4(%r13), %ebx
	jle	LBB0_17
## %bb.14:
	movl	20(%r15), %edi
	callq	_netif_tx_lock_bh
	movl	20(%r15), %esi
	xorl	%edi, %edi
	callq	_usbnet_start_xmit
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_dev_kfree_skb_any
	movq	$0, 16(%r13)
LBB0_16:
	movl	%ebx, 4(%r13)
	movl	20(%r15), %edi
	callq	_netif_tx_unlock_bh
	movl	4(%r13), %ebx
	jmp	LBB0_18
LBB0_17:
	movl	%ebx, 4(%r13)
LBB0_18:
	movl	%ebx, 8(%r15)
	movq	%r15, %rdi
	callq	_usbnet_update_max_qlen
	movq	_u16@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	4(%r13), %ebx
	movl	12(%r15), %esi
	movl	16(%r15), %edi
	movl	$1, %edx
	callq	_usb_maxpacket
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %ebx
	movq	_CDC_NCM_MIN_TX_PKT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r13), %ecx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_clamp_t
	movl	%eax, 8(%r13)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting rx_max = %u\n"

	.comm	_USB_CDC_SET_NTB_INPUT_SIZE,4,2 ## @USB_CDC_SET_NTB_INPUT_SIZE
	.comm	_USB_TYPE_CLASS,4,2             ## @USB_TYPE_CLASS
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_RECIP_INTERFACE,4,2        ## @USB_RECIP_INTERFACE
L_.str.1:                               ## @.str.1
	.asciz	"Setting NTB Input Size failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"setting tx_max = %u\n"

	.comm	_u16,4,2                        ## @u16
	.comm	_CDC_NCM_MIN_TX_PKT,4,2         ## @CDC_NCM_MIN_TX_PKT
	.no_dead_strip	_cdc_ncm_update_rxtx_max
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdc_ncm_update_rxtx_max
_cdc_ncm_update_rxtx_max:               ; @cdc_ncm_update_rxtx_max
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x23, [x8]
	ldr	x8, [x23, #32]
	ldr	x8, [x8]
	ldr	w22, [x8]
	bl	_cdc_ncm_check_rx_max
	mov	x21, x0
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x0, x21
	bl	_cpu_to_le32
	str	w0, [sp, #12]
	ldr	x0, [x19, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_info
Lloh2:
	adrp	x8, _USB_CDC_SET_NTB_INPUT_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _USB_CDC_SET_NTB_INPUT_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _USB_TYPE_CLASS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USB_TYPE_CLASS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _USB_DIR_OUT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _USB_DIR_OUT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _USB_RECIP_INTERFACE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _USB_RECIP_INTERFACE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w8, w9
	add	x5, sp, #12
	mov	x0, x19
	mov	w3, #0
	mov	x4, x22
	mov	w6, #4
	bl	_usbnet_write_cmd
	tbnz	x0, #63, LBB0_3
; %bb.2:
	str	w21, [x23]
	b	LBB0_4
LBB0_3:
	ldr	x0, [x19, #24]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
LBB0_4:
	ldr	w21, [x23]
LBB0_5:
	ldr	x9, [x19]
	sxtw	x8, w21
	cmp	x9, x8
	b.eq	LBB0_8
; %bb.6:
	str	x8, [x19]
	ldr	w0, [x19, #20]
	bl	_netif_running
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_usbnet_unlink_rx_urbs
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_cdc_ncm_check_tx_max
	mov	x20, x0
	ldr	w8, [x23, #4]
	cmp	w0, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	x0, [x19, #24]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_dev_info
LBB0_10:
	ldr	w0, [x23, #24]
	bl	_le32_to_cpu
	cmp	w20, w0
	b.eq	LBB0_12
; %bb.11:
	ldp	w1, w0, [x19, #12]
	mov	w2, #1
	bl	_usb_maxpacket
	sdiv	w8, w20, w0
	msub	w8, w8, w0, w20
	cmp	w8, #0
	cinc	w20, w20, eq
LBB0_12:
	ldr	w0, [x19, #20]
	bl	_netif_running
	cbz	x0, LBB0_17
; %bb.13:
	ldr	w8, [x23, #4]
	cmp	w20, w8
	b.le	LBB0_17
; %bb.14:
	ldr	w0, [x19, #20]
	bl	_netif_tx_lock_bh
	ldr	w1, [x19, #20]
	mov	x0, #0
	bl	_usbnet_start_xmit
	ldr	x0, [x23, #16]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_dev_kfree_skb_any
	str	xzr, [x23, #16]
LBB0_16:
	str	w20, [x23, #4]
	ldr	w0, [x19, #20]
	bl	_netif_tx_unlock_bh
	ldr	w20, [x23, #4]
	b	LBB0_18
LBB0_17:
	str	w20, [x23, #4]
LBB0_18:
	str	w20, [x19, #8]
	mov	x0, x19
	bl	_usbnet_update_max_qlen
Lloh18:
	adrp	x8, _u16@GOTPAGE
Lloh19:
	ldr	x8, [x8, _u16@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
	ldr	w21, [x23, #4]
	ldp	w1, w0, [x19, #12]
	mov	w2, #1
	bl	_usb_maxpacket
	sub	w8, w0, w0, lsl #2
	add	w1, w8, w21
Lloh21:
	adrp	x8, _CDC_NCM_MIN_TX_PKT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CDC_NCM_MIN_TX_PKT@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	ldr	w3, [x23, #4]
	mov	x0, x20
	bl	_clamp_t
	str	w0, [x23, #8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting rx_max = %u\n"

	.comm	_USB_CDC_SET_NTB_INPUT_SIZE,4,2 ; @USB_CDC_SET_NTB_INPUT_SIZE
	.comm	_USB_TYPE_CLASS,4,2             ; @USB_TYPE_CLASS
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_RECIP_INTERFACE,4,2        ; @USB_RECIP_INTERFACE
l_.str.1:                               ; @.str.1
	.asciz	"Setting NTB Input Size failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"setting tx_max = %u\n"

	.comm	_u16,4,2                        ; @u16
	.comm	_CDC_NCM_MIN_TX_PKT,4,2         ; @CDC_NCM_MIN_TX_PKT
	.no_dead_strip	_cdc_ncm_update_rxtx_max
.subsections_via_symbols
