	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sec_device_get
_sec_device_get:                        ## @sec_device_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SEC_MAX_DEVICES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movq	_SEC_Q_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	incl	%ecx
	movq	_sec_devices@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	cmpl	$1, %r8d
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	xorl	%eax, %eax
LBB0_10:
	testb	$1, %r8b
	je	LBB0_13
## %bb.11:
	movq	(%r10,%rdi,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.12:
	cmpl	%ecx, (%rdx)
	cmovlq	%rdx, %rax
LBB0_13:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rdi
	cmpq	%rdi, %r9
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r10,%rdi,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rdx), %esi
	cmpl	%ecx, %esi
	cmovlq	%rdx, %rax
	cmovll	%esi, %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r10,%rdi,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rdx), %esi
	cmpl	%ecx, %esi
	cmovlq	%rdx, %rax
	cmovll	%esi, %ecx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SEC_Q_NUM,4,2                  ## @SEC_Q_NUM
	.comm	_SEC_MAX_DEVICES,4,2            ## @SEC_MAX_DEVICES
	.comm	_sec_devices,8,3                ## @sec_devices
	.no_dead_strip	_sec_device_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sec_device_get
_sec_device_get:                        ; @sec_device_get
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SEC_MAX_DEVICES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEC_MAX_DEVICES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x0, #0
Lloh3:
	adrp	x9, _SEC_Q_NUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SEC_Q_NUM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w9, w9, #1
Lloh6:
	adrp	x10, _sec_devices@GOTPAGE
Lloh7:
	ldr	x10, [x10, _sec_devices@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #8
	subs	x8, x8, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cbz	x11, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x11]
	cmp	w12, w9
	csel	w9, w12, w9, lt
	csel	x0, x11, x0, lt
	b	LBB0_2
LBB0_5:
	ret
LBB0_6:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SEC_Q_NUM,4,2                  ; @SEC_Q_NUM
	.comm	_SEC_MAX_DEVICES,4,2            ; @SEC_MAX_DEVICES
	.comm	_sec_devices,8,3                ; @sec_devices
	.no_dead_strip	_sec_device_get
.subsections_via_symbols
