	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sedlbauer_config_check
_sedlbauer_config_check:                ## @sedlbauer_config_check
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -40(%rbp)
	cmpq	$0, (%rsi)
	je	LBB0_1
## %bb.2:
	movq	%r8, %r14
	movl	%ecx, %eax
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_CISTPL_CFTABLE_AUDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rsi)
	je	LBB0_4
## %bb.3:
	movq	_CONF_ENABLE_SPKR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 52(%r12)
	movq	_CCSR_AUDIO_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%r12)
LBB0_4:
	movl	80(%rbx), %esi
	movq	_CISTPL_POWER_VNOM@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	$1, %edx
	shll	%cl, %edx
	btl	%ecx, %esi
	jae	LBB0_28
## %bb.5:
	movq	88(%rbx), %rsi
	jmp	LBB0_6
LBB0_28:
	testl	%edx, 80(%r15)
	je	LBB0_7
## %bb.29:
	movq	88(%r15), %rsi
LBB0_6:
	movslq	(%rsi,%rcx,4), %rsi
	imulq	$1759218605, %rsi, %rsi         ## imm = 0x68DB8BAD
	movq	%rsi, %rdi
	shrq	$63, %rdi
	sarq	$44, %rsi
	addl	%edi, %esi
	cmpl	%eax, %esi
	jne	LBB0_1
LBB0_7:
	movq	%rbx, %rax
	testl	%edx, 64(%rbx)
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rax
	testl	%edx, 64(%r15)
	je	LBB0_10
LBB0_9:
	movq	72(%rax), %rax
	movslq	(%rax,%rcx,4), %rax
	imulq	$1759218605, %rax, %rax         ## imm = 0x68DB8BAD
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$44, %rax
	addl	%ecx, %eax
	movl	%eax, 48(%r12)
LBB0_10:
	cmpq	$0, 56(%rbx)
	jne	LBB0_12
## %bb.11:
	cmpq	$0, 56(%r15)
	je	LBB0_13
LBB0_12:
	movq	_CONF_ENABLE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 52(%r12)
LBB0_13:
	movq	$0, 8(%r12)
	movq	$0, 32(%r12)
	movq	32(%rbx), %rcx
	testq	%rcx, %rcx
	jg	LBB0_15
## %bb.14:
	cmpq	$0, 32(%r15)
	jle	LBB0_22
LBB0_15:
	leaq	32(%rbx), %rax
	leaq	32(%r15), %rdx
	testq	%rcx, %rcx
	cmoveq	%rdx, %rax
	movq	_IO_DATA_PATH_WIDTH_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%r12)
	movl	8(%rax), %edx
	movq	_CISTPL_IO_8BIT@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	jne	LBB0_17
## %bb.16:
	movq	_IO_DATA_PATH_WIDTH_16@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%r12)
LBB0_17:
	movq	_CISTPL_IO_16BIT@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	jne	LBB0_19
## %bb.18:
	movq	_IO_DATA_PATH_WIDTH_8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%r12)
LBB0_19:
	movq	16(%rax), %rdx
	movl	8(%rdx), %esi
	movl	%esi, 40(%r12)
	movq	(%rdx), %rsi
	movq	%rsi, 32(%r12)
	cmpq	$2, (%rax)
	jl	LBB0_21
## %bb.20:
	movl	%ecx, 24(%r12)
	movl	24(%rdx), %eax
	movl	%eax, 16(%r12)
	movq	16(%rdx), %rax
	movq	%rax, 8(%r12)
LBB0_21:
	leaq	8(%r12), %rsi
	movq	%r12, %rdi
	callq	_pcmcia_request_io
	testq	%rax, %rax
	jne	LBB0_1
LBB0_22:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	jg	LBB0_24
## %bb.23:
	cmpq	$0, 16(%r15)
	jle	LBB0_26
LBB0_24:
	addq	$16, %rbx
	addq	$16, %r15
	testq	%rax, %rax
	cmovneq	%rbx, %r15
	movq	_WIN_DATA_WIDTH_16@GOTPCREL(%rip), %rax
	movq	_WIN_MEMORY_TYPE_CM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	_WIN_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	8(%r15), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 20(%r14)
	movl	4(%rax), %eax
	movl	%eax, 16(%r14)
	movq	$0, 8(%r14)
	leaq	-40(%rbp), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_pcmcia_request_window
	testq	%rax, %rax
	jne	LBB0_1
## %bb.25:
	movq	$0, -48(%rbp)
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	-40(%rbp), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	callq	_pcmcia_map_mem_page
	testq	%rax, %rax
	je	LBB0_26
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_27:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	xorl	%eax, %eax
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_CISTPL_CFTABLE_AUDIO,4,2       ## @CISTPL_CFTABLE_AUDIO
	.comm	_CONF_ENABLE_SPKR,4,2           ## @CONF_ENABLE_SPKR
	.comm	_CCSR_AUDIO_ENA,4,2             ## @CCSR_AUDIO_ENA
	.comm	_CISTPL_POWER_VNOM,4,2          ## @CISTPL_POWER_VNOM
	.comm	_CONF_ENABLE_IRQ,4,2            ## @CONF_ENABLE_IRQ
	.comm	_IO_DATA_PATH_WIDTH_AUTO,4,2    ## @IO_DATA_PATH_WIDTH_AUTO
	.comm	_CISTPL_IO_8BIT,4,2             ## @CISTPL_IO_8BIT
	.comm	_IO_DATA_PATH_WIDTH_16,4,2      ## @IO_DATA_PATH_WIDTH_16
	.comm	_CISTPL_IO_16BIT,4,2            ## @CISTPL_IO_16BIT
	.comm	_IO_DATA_PATH_WIDTH_8,4,2       ## @IO_DATA_PATH_WIDTH_8
	.comm	_WIN_DATA_WIDTH_16,4,2          ## @WIN_DATA_WIDTH_16
	.comm	_WIN_MEMORY_TYPE_CM,4,2         ## @WIN_MEMORY_TYPE_CM
	.comm	_WIN_ENABLE,4,2                 ## @WIN_ENABLE
	.no_dead_strip	_sedlbauer_config_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sedlbauer_config_check
_sedlbauer_config_check:                ; @sedlbauer_config_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	str	x0, [sp, #24]
	ldr	x8, [x1]
	cbz	x8, LBB0_27
; %bb.1:
	mov	x19, x4
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x1, #8]
Lloh0:
	adrp	x9, _CISTPL_CFTABLE_AUDIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CISTPL_CFTABLE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _CONF_ENABLE_SPKR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONF_ENABLE_SPKR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20, #52]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _CCSR_AUDIO_ENA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CCSR_AUDIO_ENA@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [x20, #52]
LBB0_3:
Lloh9:
	adrp	x8, _CISTPL_POWER_VNOM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CISTPL_POWER_VNOM@GOTPAGEOFF]
	ldr	w10, [x21, #80]
Lloh11:
	ldr	w8, [x8]
	sxtw	x8, w8
	mov	w9, #1
	lsl	w9, w9, w8
	tst	w9, w10
	b.eq	LBB0_5
; %bb.4:
	ldr	x10, [x21, #88]
	b	LBB0_7
LBB0_5:
	ldr	w10, [x22, #80]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.6:
	ldr	x10, [x22, #88]
LBB0_7:
	ldrsw	x10, [x10, x8, lsl #2]
	mov	w11, #35757
	movk	w11, #26843, lsl #16
	mul	x10, x10, x11
	lsr	x11, x10, #63
	asr	x10, x10, #44
	add	w10, w10, w11
	cmp	w10, w3
	b.ne	LBB0_27
LBB0_8:
	ldr	w11, [x21, #64]
	mov	x10, x21
	tst	w11, w9
	b.ne	LBB0_10
; %bb.9:
	ldr	w11, [x22, #64]
	mov	x10, x22
	tst	w11, w9
	b.eq	LBB0_11
LBB0_10:
	ldr	x9, [x10, #72]
	ldrsw	x8, [x9, x8, lsl #2]
	mov	w9, #35757
	movk	w9, #26843, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #44
	add	w8, w8, w9
	str	w8, [x20, #48]
LBB0_11:
	ldr	x8, [x21, #56]
	cbnz	x8, LBB0_13
; %bb.12:
	ldr	x8, [x22, #56]
	cbz	x8, LBB0_14
LBB0_13:
Lloh12:
	adrp	x8, _CONF_ENABLE_IRQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CONF_ENABLE_IRQ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x20, #52]
	orr	w8, w9, w8
	str	w8, [x20, #52]
LBB0_14:
	str	xzr, [x20, #8]
	str	xzr, [x20, #32]
	mov	x8, x21
	ldr	x9, [x8, #32]!
	cmp	x9, #0
	b.gt	LBB0_16
; %bb.15:
	ldr	x10, [x22, #32]
	cmp	x10, #1
	b.lt	LBB0_23
LBB0_16:
	add	x10, x22, #32
	cmp	x9, #0
	csel	x8, x10, x8, eq
Lloh15:
	adrp	x9, _IO_DATA_PATH_WIDTH_AUTO@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IO_DATA_PATH_WIDTH_AUTO@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	str	w9, [x20, #20]
	ldr	w10, [x8, #8]
Lloh18:
	adrp	x11, _CISTPL_IO_8BIT@GOTPAGE
Lloh19:
	ldr	x11, [x11, _CISTPL_IO_8BIT@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	tst	w11, w10
	b.ne	LBB0_18
; %bb.17:
Lloh21:
	adrp	x9, _IO_DATA_PATH_WIDTH_16@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IO_DATA_PATH_WIDTH_16@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	str	w9, [x20, #20]
LBB0_18:
Lloh24:
	adrp	x11, _CISTPL_IO_16BIT@GOTPAGE
Lloh25:
	ldr	x11, [x11, _CISTPL_IO_16BIT@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	tst	w11, w10
	b.ne	LBB0_20
; %bb.19:
Lloh27:
	adrp	x9, _IO_DATA_PATH_WIDTH_8@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IO_DATA_PATH_WIDTH_8@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	str	w9, [x20, #20]
LBB0_20:
	ldr	x10, [x8, #16]
	ldr	w11, [x10, #8]
	str	w11, [x20, #40]
	ldr	x11, [x10]
	str	x11, [x20, #32]
	ldr	x8, [x8]
	cmp	x8, #2
	b.lt	LBB0_22
; %bb.21:
	str	w9, [x20, #24]
	ldr	w8, [x10, #24]
	str	w8, [x20, #16]
	ldr	x8, [x10, #16]
	str	x8, [x20, #8]
LBB0_22:
	add	x1, x20, #8
	mov	x0, x20
	bl	_pcmcia_request_io
	cbnz	x0, LBB0_27
LBB0_23:
	ldr	x8, [x21, #16]!
	cmp	x8, #0
	b.gt	LBB0_25
; %bb.24:
	ldr	x9, [x22, #16]
	cmp	x9, #1
	b.lt	LBB0_29
LBB0_25:
	add	x9, x22, #16
	cmp	x8, #0
	csel	x21, x9, x21, eq
Lloh30:
	adrp	x8, _WIN_DATA_WIDTH_16@GOTPAGE
Lloh31:
	ldr	x8, [x8, _WIN_DATA_WIDTH_16@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _WIN_MEMORY_TYPE_CM@GOTPAGE
Lloh34:
	ldr	x9, [x9, _WIN_MEMORY_TYPE_CM@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh36:
	adrp	x9, _WIN_ENABLE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _WIN_ENABLE@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [x21, #8]
	ldur	d0, [x8, #4]
	str	d0, [x19, #16]
	str	xzr, [x19, #8]
	add	x0, sp, #24
	mov	x1, x19
	mov	x2, x20
	bl	_pcmcia_request_window
	cbnz	x0, LBB0_27
; %bb.26:
	str	xzr, [sp, #16]
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x8, [sp, #24]
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_pcmcia_map_mem_page
	cbz	x0, LBB0_28
LBB0_27:
Lloh39:
	adrp	x8, _ENODEV@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_28:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_29:
	mov	w0, #0
	b	LBB0_28
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_CISTPL_CFTABLE_AUDIO,4,2       ; @CISTPL_CFTABLE_AUDIO
	.comm	_CONF_ENABLE_SPKR,4,2           ; @CONF_ENABLE_SPKR
	.comm	_CCSR_AUDIO_ENA,4,2             ; @CCSR_AUDIO_ENA
	.comm	_CISTPL_POWER_VNOM,4,2          ; @CISTPL_POWER_VNOM
	.comm	_CONF_ENABLE_IRQ,4,2            ; @CONF_ENABLE_IRQ
	.comm	_IO_DATA_PATH_WIDTH_AUTO,4,2    ; @IO_DATA_PATH_WIDTH_AUTO
	.comm	_CISTPL_IO_8BIT,4,2             ; @CISTPL_IO_8BIT
	.comm	_IO_DATA_PATH_WIDTH_16,4,2      ; @IO_DATA_PATH_WIDTH_16
	.comm	_CISTPL_IO_16BIT,4,2            ; @CISTPL_IO_16BIT
	.comm	_IO_DATA_PATH_WIDTH_8,4,2       ; @IO_DATA_PATH_WIDTH_8
	.comm	_WIN_DATA_WIDTH_16,4,2          ; @WIN_DATA_WIDTH_16
	.comm	_WIN_MEMORY_TYPE_CM,4,2         ; @WIN_MEMORY_TYPE_CM
	.comm	_WIN_ENABLE,4,2                 ; @WIN_ENABLE
	.no_dead_strip	_sedlbauer_config_check
.subsections_via_symbols
