	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oxygen_search_pci_id
_oxygen_search_pci_id:                  ## @oxygen_search_pci_id
	.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
	movq	%rdi, %r14
	movq	_OXYGEN_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OXYGEN_FUNCTION_ENABLE_SPI_4_5@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_oxygen_clear_bits8
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_oxygen_read_eeprom
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_oxygen_read_eeprom
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	movl	$34696, %ecx                    ## imm = 0x8788
	movl	$65535, %eax                    ## imm = 0xFFFF
	cmovel	%ecx, %eax
LBB0_2:
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.3:
	movq	_BROKEN_EEPROM_DRIVER_DATA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 40(%rbx)
	leaq	24(%rbx), %rbx
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rbx)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rcx, 8(%rbx)
	je	LBB0_6
	jmp	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OXYGEN_FUNCTION,4,2            ## @OXYGEN_FUNCTION
	.comm	_OXYGEN_FUNCTION_ENABLE_SPI_4_5,4,2 ## @OXYGEN_FUNCTION_ENABLE_SPI_4_5
	.comm	_BROKEN_EEPROM_DRIVER_DATA,8,3  ## @BROKEN_EEPROM_DRIVER_DATA
	.no_dead_strip	_oxygen_search_pci_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oxygen_search_pci_id
_oxygen_search_pci_id:                  ; @oxygen_search_pci_id
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _OXYGEN_FUNCTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OXYGEN_FUNCTION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _OXYGEN_FUNCTION_ENABLE_SPI_4_5@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OXYGEN_FUNCTION_ENABLE_SPI_4_5@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_oxygen_clear_bits8
	mov	x0, x20
	mov	w1, #2
	bl	_oxygen_read_eeprom
	mov	w21, #65535
	cmp	w0, w21
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #1
	bl	_oxygen_read_eeprom
	mov	w8, #34696
	cmp	w0, w21
	csel	w0, w8, w21, eq
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.3:
Lloh6:
	adrp	x8, _BROKEN_EEPROM_DRIVER_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BROKEN_EEPROM_DRIVER_DATA@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #40]
	add	x19, x19, #24
	cbz	x9, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19]
	cmp	w9, w0
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.eq	LBB0_4
	b	LBB0_8
LBB0_7:
	mov	x19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OXYGEN_FUNCTION,4,2            ; @OXYGEN_FUNCTION
	.comm	_OXYGEN_FUNCTION_ENABLE_SPI_4_5,4,2 ; @OXYGEN_FUNCTION_ENABLE_SPI_4_5
	.comm	_BROKEN_EEPROM_DRIVER_DATA,8,3  ; @BROKEN_EEPROM_DRIVER_DATA
	.no_dead_strip	_oxygen_search_pci_id
.subsections_via_symbols
