	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_utilfdt_decode_type            ## -- Begin function utilfdt_decode_type
	.p2align	4, 0x90
_utilfdt_decode_type:                   ## @utilfdt_decode_type
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r12d
	cmpb	$0, (%rdi)
	je	LBB0_17
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$-1, (%rdx)
	movsbl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movsbl	(%rbx), %r13d
	movb	1(%rbx), %al
	cmpb	%al, %r13b
	jne	LBB0_4
## %bb.5:
	addq	$2, %rbx
	cmpb	$104, %r13b
	movl	$98, %eax
	cmovel	%eax, %r13d
	jmp	LBB0_6
LBB0_2:
	xorl	%r13d, %r13d
LBB0_6:
	movb	(%rbx), %al
	testb	%al, %al
	jne	LBB0_8
	jmp	LBB0_17
LBB0_4:
	incq	%rbx
	testb	%al, %al
	je	LBB0_17
LBB0_8:
	movsbl	%al, %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:
	movl	$115, %eax
	cmpb	$115, (%rbx)
	je	LBB0_16
## %bb.10:
	cmpl	$98, %r13d
	je	LBB0_11
## %bb.12:
	cmpl	$104, %r13d
	jne	LBB0_13
## %bb.14:
	movl	$2, %eax
	jmp	LBB0_15
LBB0_11:
	movl	$1, %eax
	jmp	LBB0_15
LBB0_13:
	xorl	%eax, %eax
	cmpl	$108, %r13d
	sete	%al
	leal	(%rax,%rax,4), %eax
	decl	%eax
LBB0_15:
	movl	%eax, (%r15)
	movsbl	(%rbx), %eax
LBB0_16:
	movl	%eax, (%r14)
	xorl	%r12d, %r12d
	cmpb	1(%rbx), %r12b
	sbbl	%r12d, %r12d
LBB0_17:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hlLb"

L_.str.1:                               ## @.str.1
	.asciz	"iuxs"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_utilfdt_decode_type            ; -- Begin function utilfdt_decode_type
	.p2align	2
_utilfdt_decode_type:                   ; @utilfdt_decode_type
	.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, x0
	ldrb	w8, [x0]
	mov	w0, #-1
	cbz	w8, LBB0_11
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	str	w0, [x2]
	ldrsb	w1, [x20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.2:
	mov	x9, x20
	ldrb	w8, [x9, #1]!
	ldrb	w10, [x20]
	sxtb	w22, w10
	cmp	w10, w8
	b.ne	LBB0_5
; %bb.3:
	add	x20, x20, #2
	mov	w8, #98
	cmp	w22, #104
	csel	w22, w8, w22, eq
	ldrb	w8, [x20]
	cbnz	w8, LBB0_6
	b	LBB0_10
LBB0_4:
	mov	w22, #0
	ldrb	w8, [x20]
	cbnz	w8, LBB0_6
	b	LBB0_10
LBB0_5:
	mov	x20, x9
	cbz	w8, LBB0_10
LBB0_6:
	sxtb	w1, w8
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_strchr
	cbz	x0, LBB0_10
; %bb.7:
	ldrb	w8, [x20]
	cmp	w8, #115
	b.eq	LBB0_9
; %bb.8:
	mov	w8, #1
	mov	w9, #2
	cmp	w22, #108
	mov	w10, #4
	csinv	w10, w10, wzr, eq
	cmp	w22, #104
	csel	w9, w9, w10, eq
	cmp	w22, #98
	csel	w8, w8, w9, eq
	str	w8, [x21]
	ldrsb	w8, [x20]
LBB0_9:
	str	w8, [x19]
	ldrb	w8, [x20, #1]
	cmp	w8, #0
	csetm	w0, ne
	b	LBB0_11
LBB0_10:
	mov	w0, #-1
LBB0_11:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hlLb"

l_.str.1:                               ; @.str.1
	.asciz	"iuxs"

.subsections_via_symbols
