	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function o2_probe
_o2_probe:                              ## @o2_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movl	(%rdi), %ecx
	andl	$-4, %ecx
	xorl	%eax, %eax
	cmpl	$128, %ecx
	jne	LBB0_7
## %bb.1:
	movq	_O2_SD_LOCK_WP@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-28(%rbp), %rdx
	callq	_pci_read_config_byte
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movl	-28(%rbp), %edx
	andl	$127, %edx
	movl	%edx, -28(%rbp)
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	callq	_pci_write_config_byte
	movq	(%rbx), %rdi
	movq	_O2_SD_MULTI_VCC3V@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_pci_write_config_byte
	movq	(%rbx), %rdi
	movq	_O2_SD_CLKREQ@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_pci_read_config_byte
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movl	-28(%rbp), %edx
	orl	$32, %edx
	movl	%edx, -28(%rbp)
	movq	(%rbx), %rdi
	movl	(%r15), %esi
	callq	_pci_write_config_byte
	movq	(%rbx), %rdi
	movq	_O2_SD_CAPS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_pci_read_config_byte
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movl	-28(%rbp), %edx
	orl	$1, %edx
	movl	%edx, -28(%rbp)
	movq	(%rbx), %rdi
	movl	(%r15), %esi
	callq	_pci_write_config_byte
	movq	(%rbx), %rdi
	movl	(%r15), %esi
	movl	$115, %edx
	callq	_pci_write_config_byte
	movq	(%rbx), %rdi
	movq	_O2_SD_ADMA1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$57, %edx
	callq	_pci_write_config_byte
	movq	(%rbx), %rdi
	movq	_O2_SD_ADMA2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_pci_write_config_byte
	movq	(%rbx), %rdi
	movq	_O2_SD_INF_MOD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_pci_read_config_byte
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	-28(%rbp), %edx
	orl	$8, %edx
	movl	%edx, -28(%rbp)
	movq	(%rbx), %rdi
	movl	(%r15), %esi
	callq	_pci_write_config_byte
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	leaq	-28(%rbp), %rdx
	callq	_pci_read_config_byte
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	$128, %edx
	orl	-28(%rbp), %edx
	movl	%edx, -28(%rbp)
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	callq	_pci_write_config_byte
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O2_SD_LOCK_WP,4,2              ## @O2_SD_LOCK_WP
	.comm	_O2_SD_MULTI_VCC3V,4,2          ## @O2_SD_MULTI_VCC3V
	.comm	_O2_SD_CLKREQ,4,2               ## @O2_SD_CLKREQ
	.comm	_O2_SD_CAPS,4,2                 ## @O2_SD_CAPS
	.comm	_O2_SD_ADMA1,4,2                ## @O2_SD_ADMA1
	.comm	_O2_SD_ADMA2,4,2                ## @O2_SD_ADMA2
	.comm	_O2_SD_INF_MOD,4,2              ## @O2_SD_INF_MOD
	.no_dead_strip	_o2_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function o2_probe
_o2_probe:                              ; @o2_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x0, [x0]
	ldr	w8, [x0]
	and	w8, w8, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.1:
Lloh0:
	adrp	x20, _O2_SD_LOCK_WP@GOTPAGE
Lloh1:
	ldr	x20, [x20, _O2_SD_LOCK_WP@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_pci_read_config_byte
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	w8, [sp, #12]
	and	w2, w8, #0x7f
	str	w2, [sp, #12]
	ldr	x0, [x19]
	ldr	w1, [x20]
	bl	_pci_write_config_byte
	ldr	x0, [x19]
Lloh2:
	adrp	x8, _O2_SD_MULTI_VCC3V@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O2_SD_MULTI_VCC3V@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #8
	bl	_pci_write_config_byte
	ldr	x0, [x19]
Lloh5:
	adrp	x21, _O2_SD_CLKREQ@GOTPAGE
Lloh6:
	ldr	x21, [x21, _O2_SD_CLKREQ@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_pci_read_config_byte
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	w8, [sp, #12]
	orr	w2, w8, #0x20
	str	w2, [sp, #12]
	ldr	x0, [x19]
	ldr	w1, [x21]
	bl	_pci_write_config_byte
	ldr	x0, [x19]
Lloh7:
	adrp	x21, _O2_SD_CAPS@GOTPAGE
Lloh8:
	ldr	x21, [x21, _O2_SD_CAPS@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_pci_read_config_byte
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	w8, [sp, #12]
	orr	w2, w8, #0x1
	str	w2, [sp, #12]
	ldr	x0, [x19]
	ldr	w1, [x21]
	bl	_pci_write_config_byte
	ldr	x0, [x19]
	ldr	w1, [x21]
	mov	w2, #115
	bl	_pci_write_config_byte
	ldr	x0, [x19]
Lloh9:
	adrp	x8, _O2_SD_ADMA1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O2_SD_ADMA1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #57
	bl	_pci_write_config_byte
	ldr	x0, [x19]
Lloh12:
	adrp	x8, _O2_SD_ADMA2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _O2_SD_ADMA2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w2, #8
	bl	_pci_write_config_byte
	ldr	x0, [x19]
Lloh15:
	adrp	x21, _O2_SD_INF_MOD@GOTPAGE
Lloh16:
	ldr	x21, [x21, _O2_SD_INF_MOD@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_pci_read_config_byte
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	w8, [sp, #12]
	orr	w2, w8, #0x8
	str	w2, [sp, #12]
	ldr	x0, [x19]
	ldr	w1, [x21]
	bl	_pci_write_config_byte
	ldr	x0, [x19]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_pci_read_config_byte
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	w8, [sp, #12]
	orr	w2, w8, #0x80
	str	w2, [sp, #12]
	ldr	x0, [x19]
	ldr	w1, [x20]
	bl	_pci_write_config_byte
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_O2_SD_LOCK_WP,4,2              ; @O2_SD_LOCK_WP
	.comm	_O2_SD_MULTI_VCC3V,4,2          ; @O2_SD_MULTI_VCC3V
	.comm	_O2_SD_CLKREQ,4,2               ; @O2_SD_CLKREQ
	.comm	_O2_SD_CAPS,4,2                 ; @O2_SD_CAPS
	.comm	_O2_SD_ADMA1,4,2                ; @O2_SD_ADMA1
	.comm	_O2_SD_ADMA2,4,2                ; @O2_SD_ADMA2
	.comm	_O2_SD_INF_MOD,4,2              ; @O2_SD_INF_MOD
	.no_dead_strip	_o2_probe
.subsections_via_symbols
