	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bf5xx_ac97_probe
_bf5xx_ac97_probe:                      ## @bf5xx_ac97_probe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_zeroed_page
	movq	_cmd_count@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_sport_req@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_sport_num@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	leaq	L_.str(%rip), %rsi
	callq	_peripheral_request_list
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_4:
	movq	_sport_params@GOTPCREL(%rip), %rax
	movq	(%r12), %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movl	$2, %esi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_sport_init
	movq	_sport_handle@GOTPCREL(%rip), %r13
	movl	%eax, (%r13)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %edi
	movl	$16, %esi
	movl	$31, %edx
	movl	$1, %ecx
	callq	_sport_set_multichannel
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movl	(%r13), %edi
	movq	_IRFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movl	$15, %edx
	xorl	%ecx, %ecx
	movl	$255, %r8d
	callq	_sport_config_rx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	(%r13), %edi
	movq	_ITFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$15, %edx
	xorl	%ecx, %ecx
	movl	$255, %r8d
	callq	_sport_config_tx
	testl	%eax, %eax
	je	LBB0_12
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r13), %edi
	callq	_kfree
	jmp	LBB0_10
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_10:
	movq	(%r15), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_peripheral_free_list
LBB0_11:
	negl	%ebx
	movq	(%r14), %rdi
	callq	_free_page
	movq	$0, (%r14)
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_cmd_count,8,3                  ## @cmd_count
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sport_req,8,3                  ## @sport_req
	.comm	_sport_num,8,3                  ## @sport_num
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"soc-audio"

L_.str.1:                               ## @.str.1
	.asciz	"Requesting Peripherals failed\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_sport_params,8,3               ## @sport_params
	.comm	_sport_handle,4,2               ## @sport_handle
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"SPORT is busy!\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IRFS,4,2                       ## @IRFS
	.comm	_ITFS,4,2                       ## @ITFS
	.comm	_CONFIG_SND_BF5XX_RESET_GPIO_NUM,4,2 ## @CONFIG_SND_BF5XX_RESET_GPIO_NUM
	.no_dead_strip	_bf5xx_ac97_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bf5xx_ac97_probe
_bf5xx_ac97_probe:                      ; @bf5xx_ac97_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_get_zeroed_page
Lloh3:
	adrp	x20, _cmd_count@GOTPAGE
Lloh4:
	ldr	x20, [x20, _cmd_count@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x19, _sport_req@GOTPAGE
Lloh6:
	ldr	x19, [x19, _sport_req@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh7:
	adrp	x21, _sport_num@GOTPAGE
Lloh8:
	ldr	x21, [x21, _sport_num@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_peripheral_request_list
	cbz	x0, LBB0_4
; %bb.2:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh13:
	adrp	x8, _EFAULT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh15:
	ldr	w23, [x8]
	b	LBB0_11
LBB0_3:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_12
LBB0_4:
Lloh19:
	adrp	x8, _sport_params@GOTPAGE
Lloh20:
	ldr	x8, [x8, _sport_params@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	x9, [x21]
	add	x0, x8, x9, lsl #2
	mov	w1, #2
	mov	w2, #4
	mov	x3, #0
	bl	_sport_init
Lloh22:
	adrp	x22, _sport_handle@GOTPAGE
Lloh23:
	ldr	x22, [x22, _sport_handle@GOTPAGEOFF]
	str	w0, [x22]
	cbz	w0, LBB0_9
; %bb.5:
	mov	w1, #16
	mov	w2, #31
	mov	w3, #1
	bl	_sport_set_multichannel
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	w0, [x22]
Lloh24:
	adrp	x8, _IRFS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IRFS@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	w2, #15
	mov	w3, #0
	mov	w4, #255
	bl	_sport_config_rx
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w0, [x22]
Lloh27:
	adrp	x8, _ITFS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ITFS@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	w2, #15
	mov	w3, #0
	mov	w4, #255
	bl	_sport_config_tx
	cbz	w0, LBB0_13
LBB0_8:
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
Lloh32:
	adrp	x8, _EBUSY@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh34:
	ldr	w23, [x8]
	ldr	w0, [x22]
	bl	_kfree
	b	LBB0_10
LBB0_9:
Lloh35:
	adrp	x8, _ENODEV@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh37:
	ldr	w23, [x8]
LBB0_10:
	ldr	x8, [x19]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
	bl	_peripheral_free_list
LBB0_11:
	neg	w19, w23
	ldr	x0, [x20]
	bl	_free_page
	str	xzr, [x20]
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	w19, #0
	b	LBB0_12
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_cmd_count,8,3                  ; @cmd_count
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sport_req,8,3                  ; @sport_req
	.comm	_sport_num,8,3                  ; @sport_num
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"soc-audio"

l_.str.1:                               ; @.str.1
	.asciz	"Requesting Peripherals failed\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_sport_params,8,3               ; @sport_params
	.comm	_sport_handle,4,2               ; @sport_handle
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"SPORT is busy!\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IRFS,4,2                       ; @IRFS
	.comm	_ITFS,4,2                       ; @ITFS
	.comm	_CONFIG_SND_BF5XX_RESET_GPIO_NUM,4,2 ; @CONFIG_SND_BF5XX_RESET_GPIO_NUM
	.no_dead_strip	_bf5xx_ac97_probe
.subsections_via_symbols
