	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_enable_i2s             ## -- Begin function saa7134_enable_i2s
	.p2align	4, 0x90
_saa7134_enable_i2s:                    ## @saa7134_enable_i2s
	.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	%rdi, %rbx
	callq	_card_is_empress
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movq	_PCI_DEVICE_ID_PHILIPS_SAA7130@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_SAA7134_GPIO_GPMODE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$2, %edi
	xorl	%r14d, %r14d
	movl	$234881024, %esi                ## imm = 0xE000000
	xorl	%edx, %edx
	callq	_saa_andorl
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movl	$17, %r15d
	movq	_SAA7133_I2S_AUDIO_CONTROL@GOTPCREL(%rip), %rax
	cmpl	$128, %ecx
	je	LBB0_6
## %bb.3:
	cmpl	$130, %ecx
	je	LBB0_6
## %bb.4:
	cmpl	$129, %ecx
	jne	LBB0_7
## %bb.5:
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movq	_TV@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	(%rcx), %eax
	setne	%bl
	movq	_SAA7134_I2S_OUTPUT_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$128, %esi
	callq	_saa_writeb
	movq	_SAA7134_I2S_OUTPUT_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_saa_writeb
	movl	$1, %r15d
	movl	$15, %r14d
	movq	_SAA7134_I2S_OUTPUT_LEVEL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_saa_writeb
	movq	_SAA7134_I2S_AUDIO_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_saa_writeb                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DEVICE_ID_PHILIPS_SAA7130,4,2 ## @PCI_DEVICE_ID_PHILIPS_SAA7130
	.comm	_SAA7134_GPIO_GPMODE0,4,2       ## @SAA7134_GPIO_GPMODE0
	.comm	_SAA7133_I2S_AUDIO_CONTROL,4,2  ## @SAA7133_I2S_AUDIO_CONTROL
	.comm	_SAA7134_I2S_AUDIO_OUTPUT,4,2   ## @SAA7134_I2S_AUDIO_OUTPUT
	.comm	_TV,4,2                         ## @TV
	.comm	_SAA7134_I2S_OUTPUT_SELECT,4,2  ## @SAA7134_I2S_OUTPUT_SELECT
	.comm	_SAA7134_I2S_OUTPUT_FORMAT,4,2  ## @SAA7134_I2S_OUTPUT_FORMAT
	.comm	_SAA7134_I2S_OUTPUT_LEVEL,4,2   ## @SAA7134_I2S_OUTPUT_LEVEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_enable_i2s             ; -- Begin function saa7134_enable_i2s
	.p2align	2
_saa7134_enable_i2s:                    ; @saa7134_enable_i2s
	.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
	bl	_card_is_empress
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _PCI_DEVICE_ID_PHILIPS_SAA7130@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_DEVICE_ID_PHILIPS_SAA7130@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh3:
	adrp	x8, _SAA7134_GPIO_GPMODE0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SAA7134_GPIO_GPMODE0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	asr	w0, w8, #2
	mov	w1, #234881024
	mov	w2, #0
	bl	_saa_andorl
	mov	w1, #0
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	mov	w20, #17
Lloh6:
	adrp	x8, _SAA7133_I2S_AUDIO_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SAA7133_I2S_AUDIO_CONTROL@GOTPAGEOFF]
	cmp	w9, #128
	b.eq	LBB0_7
; %bb.4:
	cmp	w9, #130
	b.eq	LBB0_7
; %bb.5:
	cmp	w9, #129
	b.ne	LBB0_2
; %bb.6:
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _TV@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TV@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w19, ne
Lloh11:
	adrp	x8, _SAA7134_I2S_OUTPUT_SELECT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SAA7134_I2S_OUTPUT_SELECT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #128
	bl	_saa_writeb
Lloh14:
	adrp	x8, _SAA7134_I2S_OUTPUT_FORMAT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SAA7134_I2S_OUTPUT_FORMAT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_saa_writeb
	mov	w20, #1
	mov	w1, #15
Lloh17:
	adrp	x8, _SAA7134_I2S_OUTPUT_LEVEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SAA7134_I2S_OUTPUT_LEVEL@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	bl	_saa_writeb
Lloh19:
	adrp	x8, _SAA7134_I2S_AUDIO_OUTPUT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SAA7134_I2S_AUDIO_OUTPUT@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_saa_writeb
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DEVICE_ID_PHILIPS_SAA7130,4,2 ; @PCI_DEVICE_ID_PHILIPS_SAA7130
	.comm	_SAA7134_GPIO_GPMODE0,4,2       ; @SAA7134_GPIO_GPMODE0
	.comm	_SAA7133_I2S_AUDIO_CONTROL,4,2  ; @SAA7133_I2S_AUDIO_CONTROL
	.comm	_SAA7134_I2S_AUDIO_OUTPUT,4,2   ; @SAA7134_I2S_AUDIO_OUTPUT
	.comm	_TV,4,2                         ; @TV
	.comm	_SAA7134_I2S_OUTPUT_SELECT,4,2  ; @SAA7134_I2S_OUTPUT_SELECT
	.comm	_SAA7134_I2S_OUTPUT_FORMAT,4,2  ; @SAA7134_I2S_OUTPUT_FORMAT
	.comm	_SAA7134_I2S_OUTPUT_LEVEL,4,2   ; @SAA7134_I2S_OUTPUT_LEVEL
.subsections_via_symbols
