	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_rx_buf_len_init
_wil_rx_buf_len_init:                   ## @wil_rx_buf_len_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_rx_large_buf@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_WIL_MAX_ETH_MTU@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_TXRX_BUF_LEN_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_WIL_MAX_MPDU_OVERHEAD@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
LBB0_3:
	movq	%rax, (%rbx)
	movq	_mtu_max@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	cmpq	%rax, %rdx
	jle	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wil_info
	movq	(%r14), %rax
	movq	%rax, (%rbx)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rx_large_buf,8,3               ## @rx_large_buf
	.comm	_WIL_MAX_ETH_MTU,8,3            ## @WIL_MAX_ETH_MTU
	.comm	_TXRX_BUF_LEN_DEFAULT,8,3       ## @TXRX_BUF_LEN_DEFAULT
	.comm	_WIL_MAX_MPDU_OVERHEAD,8,3      ## @WIL_MAX_MPDU_OVERHEAD
	.comm	_mtu_max,8,3                    ## @mtu_max
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Override RX buffer to mtu_max(%d)\n"

	.no_dead_strip	_wil_rx_buf_len_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_rx_buf_len_init
_wil_rx_buf_len_init:                   ; @wil_rx_buf_len_init
	.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
Lloh0:
	adrp	x8, _rx_large_buf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rx_large_buf@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _WIL_MAX_ETH_MTU@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WIL_MAX_ETH_MTU@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _TXRX_BUF_LEN_DEFAULT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TXRX_BUF_LEN_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _WIL_MAX_MPDU_OVERHEAD@GOTPAGE
Lloh10:
	ldr	x11, [x11, _WIL_MAX_MPDU_OVERHEAD@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	sub	x10, x10, x11
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x8, [x0]
Lloh12:
	adrp	x20, _mtu_max@GOTPAGE
Lloh13:
	ldr	x20, [x20, _mtu_max@GOTPAGEOFF]
	ldr	x2, [x20]
	cmp	x2, x8
	b.le	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wil_info
	ldr	x8, [x20]
	str	x8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_rx_large_buf,8,3               ; @rx_large_buf
	.comm	_WIL_MAX_ETH_MTU,8,3            ; @WIL_MAX_ETH_MTU
	.comm	_TXRX_BUF_LEN_DEFAULT,8,3       ; @TXRX_BUF_LEN_DEFAULT
	.comm	_WIL_MAX_MPDU_OVERHEAD,8,3      ; @WIL_MAX_MPDU_OVERHEAD
	.comm	_mtu_max,8,3                    ; @mtu_max
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Override RX buffer to mtu_max(%d)\n"

	.no_dead_strip	_wil_rx_buf_len_init
.subsections_via_symbols
