	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function infer_hw_params
_infer_hw_params:                       ## @infer_hw_params
	.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	8(%rdi), %rax
	movq	_SDMA_CONFIG@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$1024, %rsi                     ## imm = 0x400
	movl	$33554432, %edi                 ## imm = 0x2000000
	callq	_writel
	movq	8(%rbx), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rdi
	addq	$1024, %rdi                     ## imm = 0x400
	callq	_readl
	shrl	$25, %eax
	andl	$1, %eax
	movl	%eax, (%rbx)
	movq	8(%rbx), %rax
	movq	_TX_BW_MTU_MOVED@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$1024, %rsi                     ## imm = 0x400
	movl	$1, %edi
	callq	_writel
	movq	8(%rbx), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rdi
	addq	$1024, %rdi                     ## imm = 0x400
	callq	_readl
	testb	$1, %al
	jne	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	movq	_TX_BW_RATE@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$1024, %rsi                     ## imm = 0x400
	movl	$7, %edi
	callq	_writel
	movq	8(%rbx), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rdi
	addq	$1024, %rdi                     ## imm = 0x400
	callq	_readl
	testb	$7, %al
	jne	LBB0_3
## %bb.4:
	movq	_TX_BW_CONTROL_ABSENT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_TX_BW_CONTROL_NEW_LAYOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_TX_BW_CONTROL_OLD_LAYOUT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDMA_CONFIG,8,3                ## @SDMA_CONFIG
	.comm	_TX_BW_MTU_MOVED,8,3            ## @TX_BW_MTU_MOVED
	.comm	_TX_BW_CONTROL_NEW_LAYOUT,4,2   ## @TX_BW_CONTROL_NEW_LAYOUT
	.comm	_TX_BW_RATE,8,3                 ## @TX_BW_RATE
	.comm	_TX_BW_CONTROL_OLD_LAYOUT,4,2   ## @TX_BW_CONTROL_OLD_LAYOUT
	.comm	_TX_BW_CONTROL_ABSENT,4,2       ## @TX_BW_CONTROL_ABSENT
	.no_dead_strip	_infer_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function infer_hw_params
_infer_hw_params:                       ; @infer_hw_params
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x20, _SDMA_CONFIG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SDMA_CONFIG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #1024
	mov	w0, #33554432
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x0, x8, #1024
	bl	_readl
	ubfx	w8, w0, #25, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x20, _TX_BW_MTU_MOVED@GOTPAGE
Lloh3:
	ldr	x20, [x20, _TX_BW_MTU_MOVED@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #1024
	mov	w0, #1
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x0, x8, #1024
	bl	_readl
	tbnz	w0, #0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x20, _TX_BW_RATE@GOTPAGE
Lloh5:
	ldr	x20, [x20, _TX_BW_RATE@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #1024
	mov	w0, #7
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x0, x8, #1024
	bl	_readl
Lloh6:
	adrp	x8, _TX_BW_CONTROL_OLD_LAYOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TX_BW_CONTROL_OLD_LAYOUT@GOTPAGEOFF]
Lloh8:
	adrp	x9, _TX_BW_CONTROL_ABSENT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TX_BW_CONTROL_ABSENT@GOTPAGEOFF]
	tst	w0, #0x7
	csel	x8, x9, x8, eq
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _TX_BW_CONTROL_NEW_LAYOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TX_BW_CONTROL_NEW_LAYOUT@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SDMA_CONFIG,8,3                ; @SDMA_CONFIG
	.comm	_TX_BW_MTU_MOVED,8,3            ; @TX_BW_MTU_MOVED
	.comm	_TX_BW_CONTROL_NEW_LAYOUT,4,2   ; @TX_BW_CONTROL_NEW_LAYOUT
	.comm	_TX_BW_RATE,8,3                 ; @TX_BW_RATE
	.comm	_TX_BW_CONTROL_OLD_LAYOUT,4,2   ; @TX_BW_CONTROL_OLD_LAYOUT
	.comm	_TX_BW_CONTROL_ABSENT,4,2       ; @TX_BW_CONTROL_ABSENT
	.no_dead_strip	_infer_hw_params
.subsections_via_symbols
