	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cobalt_hdl_info_get
_cobalt_hdl_info_get:                   ## @cobalt_hdl_info_get
	.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
	movq	%rdi, %r15
	movq	_COBALT_HDL_INFO_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_COBALT_HDL_INFO_BASE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	addq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_ioread8
	movq	(%r15), %rcx
	movb	%al, (%rcx,%rbx)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	(%r15), %rcx
	cltq
	movb	$0, -1(%rax,%rcx)
	movq	(%r15), %rdi
	movq	_COBALT_HDL_SEARCH_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strstr
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COBALT_HDL_INFO_SIZE,4,2       ## @COBALT_HDL_INFO_SIZE
	.comm	_COBALT_HDL_INFO_BASE,8,3       ## @COBALT_HDL_INFO_BASE
	.comm	_COBALT_HDL_SEARCH_STR,4,2      ## @COBALT_HDL_SEARCH_STR
	.no_dead_strip	_cobalt_hdl_info_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cobalt_hdl_info_get
_cobalt_hdl_info_get:                   ; @cobalt_hdl_info_get
	.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	x19, x0
Lloh0:
	adrp	x20, _COBALT_HDL_INFO_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _COBALT_HDL_INFO_SIZE@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
Lloh2:
	adrp	x22, _COBALT_HDL_INFO_BASE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _COBALT_HDL_INFO_BASE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x8, x8, x9
	add	x0, x21, x8
	bl	_ioread8
	ldr	x8, [x19]
	strb	w0, [x8, x21]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x9, [x19]
	add	x8, x9, w8, sxtw
	sturb	wzr, [x8, #-1]
	ldr	x0, [x19]
Lloh4:
	adrp	x8, _COBALT_HDL_SEARCH_STR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _COBALT_HDL_SEARCH_STR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_strstr
	cmp	x0, #0
	cset	w0, eq
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_COBALT_HDL_INFO_SIZE,4,2       ; @COBALT_HDL_INFO_SIZE
	.comm	_COBALT_HDL_INFO_BASE,8,3       ; @COBALT_HDL_INFO_BASE
	.comm	_COBALT_HDL_SEARCH_STR,4,2      ; @COBALT_HDL_SEARCH_STR
	.no_dead_strip	_cobalt_hdl_info_get
.subsections_via_symbols
