	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fw_probe
_fw_probe:                              ## @fw_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	%edi, %esi
	movq	_FWOHCI_STATE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	leaq	16(%rbx), %rdx
	movl	$786448, %edi                   ## imm = 0xC0010
	callq	_biospci_find_devclass
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_FWOHCI_STATE_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	jmp	LBB0_3
LBB0_2:
	movl	16(%rbx), %edi
	movq	_BIOSPCI_16BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	movl	$6, %ecx
	callq	_biospci_write_config
	movl	16(%rbx), %edi
	movq	_BIOSPCI_32BITS@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	20(%rbx), %rcx
	xorl	%esi, %esi
	callq	_biospci_read_config
	movl	16(%rbx), %edi
	movl	(%r14), %edx
	leaq	4(%rbx), %rcx
	movl	$16, %esi
	callq	_biospci_read_config
	movl	4(%rbx), %edi
	callq	_PTOV
	movq	%rax, 8(%rbx)
	movq	_OHCI_BUS_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OREAD
	movl	%eax, (%rbx)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FWOHCI_STATE_INIT,4,2          ## @FWOHCI_STATE_INIT
	.comm	_FWOHCI_STATE_DEAD,4,2          ## @FWOHCI_STATE_DEAD
	.comm	_BIOSPCI_16BITS,4,2             ## @BIOSPCI_16BITS
	.comm	_BIOSPCI_32BITS,4,2             ## @BIOSPCI_32BITS
	.comm	_OHCI_BUS_ID,4,2                ## @OHCI_BUS_ID
	.no_dead_strip	_fw_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fw_probe
_fw_probe:                              ; @fw_probe
	.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, x1
	mov	x1, x0
Lloh0:
	adrp	x8, _FWOHCI_STATE_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FWOHCI_STATE_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	add	x2, x19, #16
	mov	w0, #16
	movk	w0, #12, lsl #16
	bl	_biospci_find_devclass
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _FWOHCI_STATE_DEAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FWOHCI_STATE_DEAD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #16]
Lloh6:
	adrp	x8, _BIOSPCI_16BITS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BIOSPCI_16BITS@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #4
	mov	w3, #6
	bl	_biospci_write_config
	ldr	w0, [x19, #16]
Lloh9:
	adrp	x20, _BIOSPCI_32BITS@GOTPAGE
Lloh10:
	ldr	x20, [x20, _BIOSPCI_32BITS@GOTPAGEOFF]
	ldr	w2, [x20]
	add	x3, x19, #20
	mov	w1, #0
	bl	_biospci_read_config
	ldr	w0, [x19, #16]
	ldr	w2, [x20]
	add	x3, x19, #4
	mov	w1, #16
	bl	_biospci_read_config
	ldr	w0, [x19, #4]
	bl	_PTOV
	str	x0, [x19, #8]
Lloh11:
	adrp	x8, _OHCI_BUS_ID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OHCI_BUS_ID@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_OREAD
	str	w0, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FWOHCI_STATE_INIT,4,2          ; @FWOHCI_STATE_INIT
	.comm	_FWOHCI_STATE_DEAD,4,2          ; @FWOHCI_STATE_DEAD
	.comm	_BIOSPCI_16BITS,4,2             ; @BIOSPCI_16BITS
	.comm	_BIOSPCI_32BITS,4,2             ; @BIOSPCI_32BITS
	.comm	_OHCI_BUS_ID,4,2                ; @OHCI_BUS_ID
	.no_dead_strip	_fw_probe
.subsections_via_symbols
