	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54_find_type
_p54_find_type:                         ## @p54_find_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	___NUM_P54U_HWTYPES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	movl	$0, %edx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movq	_p54u_fwlist@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	(%rdi), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, (%rsi,%rdx,8)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_2
## %bb.4:
	movl	%ecx, %edx
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rsi
	subl	(%rsi), %eax
	cmpl	%ecx, %edx
	cmovnel	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___NUM_P54U_HWTYPES,4,2         ## @__NUM_P54U_HWTYPES
	.comm	_p54u_fwlist,8,3                ## @p54u_fwlist
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_p54_find_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54_find_type
_p54_find_type:                         ; @p54_find_type
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, ___NUM_P54U_HWTYPES@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___NUM_P54U_HWTYPES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x9, #0
Lloh3:
	adrp	x10, _p54u_fwlist@GOTPAGE
Lloh4:
	ldr	x10, [x10, _p54u_fwlist@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x11, [x0]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10, x9, lsl #3]
	cmp	x12, x11
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.4:
	mov	x9, x8
	b	LBB0_6
LBB0_5:
	mov	w9, #0
LBB0_6:
Lloh6:
	adrp	x10, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _EOPNOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, w8
	csneg	w0, w9, w10, ne
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	___NUM_P54U_HWTYPES,4,2         ; @__NUM_P54U_HWTYPES
	.comm	_p54u_fwlist,8,3                ; @p54u_fwlist
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_p54_find_type
.subsections_via_symbols
