	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bf5xx_i2s_hw_params
_bf5xx_i2s_hw_params:                   ## @bf5xx_i2s_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_bf5xx_i2s@GOTPCREL(%rip), %r14
	andb	$-32, (%r14)
	movq	%rsi, %rdi
	andb	$-32, 4(%r14)
	callq	_params_format
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	ja	LBB0_2
## %bb.1:
	shll	$3, %ecx
	movl	$31, %edx
	subl	%ecx, %edx
	orl	%edx, (%r14)
	movl	$132, %ecx
	orl	%edx, 4(%r14)
	subl	%eax, %ecx
	movq	_sport_handle@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, (%rax)
LBB0_2:
	xorl	%ebx, %ebx
	cmpl	$0, 8(%r14)
	jne	LBB0_6
## %bb.3:
	movl	$1, 8(%r14)
	movq	_sport_handle@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movl	4(%r14), %edx
	movl	16(%r14), %esi
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sport_config_rx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	(%r15), %rdi
	movl	(%r14), %edx
	movl	12(%r14), %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sport_config_tx
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bf5xx_i2s,20,2                 ## @bf5xx_i2s
	.comm	_sport_handle,8,3               ## @sport_handle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPORT is busy!\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_bf5xx_i2s_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bf5xx_i2s_hw_params
_bf5xx_i2s_hw_params:                   ; @bf5xx_i2s_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	x0, x1
Lloh0:
	adrp	x19, _bf5xx_i2s@GOTPAGE
Lloh1:
	ldr	x19, [x19, _bf5xx_i2s@GOTPAGEOFF]
	ldr	d0, [x19]
	bic.2s	v0, #31
	str	d0, [x19]
	bl	_params_format
	sub	w8, w0, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
	mov	w9, #31
	sub	w8, w9, w8, lsl #3
	mov	w9, #132
	sub	w9, w9, w0
	ldr	d0, [x19]
	dup.2s	v1, w8
	orr.8b	v0, v0, v1
	str	d0, [x19]
Lloh2:
	adrp	x8, _sport_handle@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sport_handle@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	w9, [x8]
LBB0_2:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	mov	w8, #1
	str	w8, [x19, #8]
Lloh5:
	adrp	x20, _sport_handle@GOTPAGE
Lloh6:
	ldr	x20, [x20, _sport_handle@GOTPAGEOFF]
	ldr	x0, [x20]
	ldr	w1, [x19, #16]
	ldr	w2, [x19, #4]
	mov	w3, #0
	mov	w4, #0
	bl	_sport_config_rx
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	x0, [x20]
	ldr	w1, [x19, #12]
	ldr	w2, [x19]
	mov	w3, #0
	mov	w4, #0
	bl	_sport_config_tx
	cbz	w0, LBB0_7
LBB0_6:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_bf5xx_i2s,20,2                 ; @bf5xx_i2s
	.comm	_sport_handle,8,3               ; @sport_handle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPORT is busy!\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_bf5xx_i2s_hw_params
.subsections_via_symbols
