	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bd_md_next_seg                 ## -- Begin function bd_md_next_seg
	.p2align	4, 0x90
_bd_md_next_seg:                        ## @bd_md_next_seg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %edi
	movq	_OBJ_TYPE_SEG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_obj_lookup
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	movl	(%rcx), %eax
LBB0_4:
	popq	%rbp
	retq
LBB0_2:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_errno@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJ_TYPE_SEG,4,2               ## @OBJ_TYPE_SEG
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bd_md_next_seg                 ; -- Begin function bd_md_next_seg
	.p2align	2
_bd_md_next_seg:                        ; @bd_md_next_seg
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x0, x1
Lloh0:
	adrp	x8, _OBJ_TYPE_SEG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OBJ_TYPE_SEG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_obj_lookup
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
LBB0_4:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJ_TYPE_SEG,4,2               ; @OBJ_TYPE_SEG
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
