	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function osi_config
_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	16(%rdi), %rax
	movq	_CONF_ENABLE_SPKR@GOTPCREL(%rip), %rcx
	movq	_CONF_ENABLE_IRQ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	24(%rdi), %r15
	orl	%edx, (%rdi)
	movq	(%rax), %rcx
	movl	$64, (%rcx)
	movq	_IO_DATA_PATH_WIDTH_8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rax), %rax
	orl	%ecx, 8(%rax)
	movl	$8, (%rax)
	movabsq	$150323855376, %rcx             ## imm = 0x2300000010
	movq	%rcx, 4(%rdi)
	movl	$1016, 4(%rax)                  ## imm = 0x3F8
	callq	_pcmcia_request_io
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	16(%rbx), %rax
	movq	8(%rax), %rax
	movl	$760, 4(%rax)                   ## imm = 0x2F8
	movq	%rbx, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	16(%rbx), %rax
	movq	8(%rax), %rax
	movl	$1000, 4(%rax)                  ## imm = 0x3E8
	movq	%rbx, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	16(%rbx), %rax
	movq	8(%rax), %rax
	movl	$744, 4(%rax)                   ## imm = 0x2E8
	movq	%rbx, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	$3, 8(%rbx)
	movq	16(%rbx), %rax
	movq	8(%rax), %rax
	movl	$0, (%rax)
	movq	%rbx, %rdi
	callq	_pcmcia_request_io
	movl	%eax, %r14d
LBB0_5:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	4(%rax), %eax
	addl	$16, %eax
	movl	%eax, (%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	_CONF_ENABLE_IRQ,4,2            ## @CONF_ENABLE_IRQ
	.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,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function osi_config
lCPI0_0:
	.long	16                              ; 0x10
	.long	35                              ; 0x23
	.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]
Lloh3:
	adrp	x9, _CONF_ENABLE_IRQ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CONF_ENABLE_IRQ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldp	x10, x20, [x0, #16]
	mov	w11, #64
	ldp	x12, x10, [x10]
	str	w11, [x12]
	orr	w8, w9, w8
	ldr	w9, [x0]
	orr	w8, w8, w9
Lloh6:
	adrp	x9, _IO_DATA_PATH_WIDTH_8@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IO_DATA_PATH_WIDTH_8@GOTPAGEOFF]
	str	w8, [x0]
Lloh8:
	ldr	w8, [x9]
	ldr	w9, [x10, #8]
	orr	w8, w9, w8
	str	w8, [x10, #8]
	mov	w8, #8
	str	w8, [x10]
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x0, #4]
	mov	w8, #1016
	str	w8, [x10, #4]
	bl	_pcmcia_request_io
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	mov	w9, #760
	str	w9, [x8, #4]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	mov	w9, #1000
	str	w9, [x8, #4]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	mov	w9, #744
	str	w9, [x8, #4]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_5
; %bb.4:
	mov	w8, #3
	str	w8, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	str	wzr, [x8]
	mov	x0, x19
	bl	_pcmcia_request_io
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w8, [x8, #4]
	add	w8, w8, #16
	str	w8, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh9, Lloh10
	.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	_CONF_ENABLE_IRQ,4,2            ; @CONF_ENABLE_IRQ
	.comm	_IO_DATA_PATH_WIDTH_8,4,2       ; @IO_DATA_PATH_WIDTH_8
	.no_dead_strip	_osi_config
.subsections_via_symbols
