	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_branch_descriptor
_find_branch_descriptor:                ## @find_branch_descriptor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movq	_DESCRIPTOR_BRANCH_ALWAYS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r15), %edi
	callq	_le16_to_cpu
	cmpl	$2, %r14d
	jne	LBB0_3
## %bb.1:
	andl	%r12d, %ebx
	andl	$-4, %ebx
	cmpl	$12, %ebx
	je	LBB0_4
## %bb.2:
	movq	_DESCRIPTOR_KEY_IMMEDIATE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	andl	$-256, %eax
	cmpl	$512, %eax                      ## imm = 0x200
	je	LBB0_4
LBB0_3:
	movslq	%r14d, %rax
	leaq	(%r15,%rax,4), %r15
	addq	$-4, %r15
LBB0_4:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DESCRIPTOR_BRANCH_ALWAYS,4,2   ## @DESCRIPTOR_BRANCH_ALWAYS
	.comm	_DESCRIPTOR_KEY_IMMEDIATE,4,2   ## @DESCRIPTOR_KEY_IMMEDIATE
	.no_dead_strip	_find_branch_descriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_branch_descriptor
_find_branch_descriptor:                ; @find_branch_descriptor
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_le16_to_cpu
	mov	x21, x0
Lloh0:
	adrp	x8, _DESCRIPTOR_BRANCH_ALWAYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DESCRIPTOR_BRANCH_ALWAYS@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w0, [x19]
	bl	_le16_to_cpu
	cmp	w20, #2
	b.ne	LBB0_3
; %bb.1:
	and	w8, w21, w22
	and	w8, w8, #0xfffffffc
	cmp	w8, #12
	b.eq	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _DESCRIPTOR_KEY_IMMEDIATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DESCRIPTOR_KEY_IMMEDIATE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w0, w8
	and	w8, w8, #0xffffff00
	cmp	w8, #512
	b.eq	LBB0_4
LBB0_3:
	add	x8, x19, w20, sxtw #2
	sub	x19, x8, #4
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DESCRIPTOR_BRANCH_ALWAYS,4,2   ; @DESCRIPTOR_BRANCH_ALWAYS
	.comm	_DESCRIPTOR_KEY_IMMEDIATE,4,2   ; @DESCRIPTOR_KEY_IMMEDIATE
	.no_dead_strip	_find_branch_descriptor
.subsections_via_symbols
