	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_sec_number
_find_sec_number:                       ## @find_sec_number
	.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
	movl	%esi, %ebx
	movl	%edi, %r14d
	callq	_ibmphp_find_same_bus_num
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpl	%ebx, (%rax)
	jl	LBB0_8
## %bb.2:
	movl	4(%rax), %eax
	cmpl	%ebx, %eax
	jg	LBB0_8
## %bb.3:
	subl	%eax, %ebx
	addl	%r14d, %ebx
	incl	%ebx
	movl	%ebx, %edi
	callq	_ibmphp_find_res_bus
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	cmpl	$0, 8(%rax)
	jne	LBB0_10
## %bb.5:
	cmpl	$0, 4(%rax)
	jne	LBB0_10
## %bb.6:
	cmpl	$0, (%rax)
	jne	LBB0_10
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
LBB0_9:
	callq	_err
LBB0_10:
	movl	$255, %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot get slot range of the bus from the BIOS\n"

L_.str.1:                               ## @.str.1
	.asciz	"got the wrong range\n"

	.no_dead_strip	_find_sec_number
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_sec_number
_find_sec_number:                       ; @find_sec_number
	.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	x20, x1
	mov	x19, x0
	bl	_ibmphp_find_same_bus_num
	cbz	x0, LBB0_3
; %bb.1:
	ldp	w9, w8, [x0]
	cmp	w9, w20
	ccmp	w8, w20, #0, ge
	b.le	LBB0_4
; %bb.2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
	b	LBB0_8
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
	b	LBB0_8
LBB0_4:
	sub	w8, w20, w8
	add	w8, w19, w8
	add	w19, w8, #1
	mov	x0, x19
	bl	_ibmphp_find_res_bus
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w8, [x0, #8]
	cbnz	w8, LBB0_8
; %bb.6:
	ldr	w8, [x0, #4]
	cbnz	w8, LBB0_8
; %bb.7:
	ldr	w8, [x0]
	cbz	w8, LBB0_9
LBB0_8:
	mov	w19, #255
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot get slot range of the bus from the BIOS\n"

l_.str.1:                               ; @.str.1
	.asciz	"got the wrong range\n"

	.no_dead_strip	_find_sec_number
.subsections_via_symbols
