	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function osi_config
LCPI0_0:
	.long	64                              ## 0x40
	.long	8                               ## 0x8
	.long	16                              ## 0x10
	.long	1016                            ## 0x3f8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_osi_config:                            ## @osi_config
	.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
	movq	48(%rdi), %r15
	movq	_CONF_ENABLE_SPKR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%rdi)
	movq	_CCSR_AUDIO_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rdi)
	movq	_IRQ_TYPE_DYNAMIC_SHARING@GOTPCREL(%rip), %rax
	movq	_IRQ_FIRST_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IRQ_HANDLE_PRESENT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 44(%rdi)
	movl	$35, 32(%rdi)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [64,8,16,1016]
	movups	%xmm0, (%rdi)
	movq	_IO_DATA_PATH_WIDTH_8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdi)
	movq	%rdi, %rsi
	callq	_pcmcia_request_io
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	$760, 12(%rbx)                  ## imm = 0x2F8
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	$1000, 12(%rbx)                 ## imm = 0x3E8
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	$744, 12(%rbx)                  ## imm = 0x2E8
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	$3, 32(%rbx)
	movl	$0, 4(%rbx)
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_pcmcia_request_io
	movl	%eax, %r14d
LBB0_5:
	movq	16(%rbx), %rax
	addq	$16, %rax
	movq	%rax, (%r15)
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONF_ENABLE_SPKR,4,2           ## @CONF_ENABLE_SPKR
	.comm	_CCSR_AUDIO_ENA,4,2             ## @CCSR_AUDIO_ENA
	.comm	_IRQ_TYPE_DYNAMIC_SHARING,4,2   ## @IRQ_TYPE_DYNAMIC_SHARING
	.comm	_IRQ_FIRST_SHARED,4,2           ## @IRQ_FIRST_SHARED
	.comm	_IRQ_HANDLE_PRESENT,4,2         ## @IRQ_HANDLE_PRESENT
	.comm	_IO_DATA_PATH_WIDTH_8,4,2       ## @IO_DATA_PATH_WIDTH_8
	.no_dead_strip	_osi_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function osi_config
lCPI0_0:
	.long	64                              ; 0x40
	.long	8                               ; 0x8
	.long	16                              ; 0x10
	.long	1016                            ; 0x3f8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_osi_config:                            ; @osi_config
	.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
Lloh0:
	adrp	x8, _CONF_ENABLE_SPKR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONF_ENABLE_SPKR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #40]
	orr	w8, w9, w8
Lloh3:
	adrp	x9, _IRQ_TYPE_DYNAMIC_SHARING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IRQ_TYPE_DYNAMIC_SHARING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _IRQ_FIRST_SHARED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IRQ_FIRST_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh9:
	adrp	x10, _IRQ_HANDLE_PRESENT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IRQ_HANDLE_PRESENT@GOTPAGEOFF]
	ldr	x20, [x0, #48]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh12:
	adrp	x10, _CCSR_AUDIO_ENA@GOTPAGE
Lloh13:
	ldr	x10, [x10, _CCSR_AUDIO_ENA@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	stp	w8, w9, [x0, #40]
	mov	w8, #35
	stp	w8, w10, [x0, #32]
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x0]
Lloh17:
	adrp	x8, _IO_DATA_PATH_WIDTH_8@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IO_DATA_PATH_WIDTH_8@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	mov	x1, x0
	bl	_pcmcia_request_io
	cbz	w0, LBB0_5
; %bb.1:
	mov	w8, #760
	str	w8, [x19, #12]
	mov	x0, x19
	mov	x1, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_5
; %bb.2:
	mov	w8, #1000
	str	w8, [x19, #12]
	mov	x0, x19
	mov	x1, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_5
; %bb.3:
	mov	w8, #744
	str	w8, [x19, #12]
	mov	x0, x19
	mov	x1, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_5
; %bb.4:
	mov	w8, #3
	str	w8, [x19, #32]
	str	wzr, [x19, #4]
	mov	x0, x19
	mov	x1, x19
	bl	_pcmcia_request_io
LBB0_5:
	ldr	x8, [x19, #16]
	add	x8, x8, #16
	str	x8, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdrp	Lloh15, Lloh17
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CONF_ENABLE_SPKR,4,2           ; @CONF_ENABLE_SPKR
	.comm	_CCSR_AUDIO_ENA,4,2             ; @CCSR_AUDIO_ENA
	.comm	_IRQ_TYPE_DYNAMIC_SHARING,4,2   ; @IRQ_TYPE_DYNAMIC_SHARING
	.comm	_IRQ_FIRST_SHARED,4,2           ; @IRQ_FIRST_SHARED
	.comm	_IRQ_HANDLE_PRESENT,4,2         ; @IRQ_HANDLE_PRESENT
	.comm	_IO_DATA_PATH_WIDTH_8,4,2       ; @IO_DATA_PATH_WIDTH_8
	.no_dead_strip	_osi_config
.subsections_via_symbols
