	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function of_get_bus_format
_of_get_bus_format:                     ## @of_get_bus_format
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$0, -36(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_string
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	movq	_imx_ldb_bit_mappings@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rdi
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	addq	$12, %r12
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi
	movq	(%r15), %rax
	movl	8(%rax,%r12), %esi
	callq	_strcasecmp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-36(%rbp), %eax
	movq	(%r15), %rdi
	cmpl	(%rdi,%r12), %eax
	jne	LBB0_5
## %bb.8:
	movl	4(%rdi,%r12), %eax
	jmp	LBB0_9
LBB0_6:
	movl	-36(%rbp), %edx
	movq	-48(%rbp), %rcx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fsl,data-mapping"

L_.str.1:                               ## @.str.1
	.asciz	"fsl,data-width"

	.comm	_imx_ldb_bit_mappings,8,3       ## @imx_ldb_bit_mappings
L_.str.2:                               ## @.str.2
	.asciz	"invalid data mapping: %d-bit \"%s\"\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_of_get_bus_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function of_get_bus_format
_of_get_bus_format:                     ; @of_get_bus_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	wzr, [sp, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_of_property_read_string
	tbnz	w0, #31, LBB0_9
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #4
	mov	x0, x20
	bl	_of_property_read_u32
Lloh4:
	adrp	x20, _imx_ldb_bit_mappings@GOTPAGE
Lloh5:
	ldr	x20, [x20, _imx_ldb_bit_mappings@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x21, #0
	mov	x22, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x20]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	add	x21, x21, #12
	cmp	x22, w0, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	ldr	x8, [x20]
	add	x8, x8, x21
	ldr	w1, [x8, #8]
	bl	_strcasecmp
	cbnz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #4]
	ldr	x0, [x20]
	ldr	w9, [x0, x21]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.7:
	add	x8, x0, x21
	ldr	w0, [x8, #4]
	b	LBB0_9
LBB0_8:
	ldr	w2, [sp, #4]
	ldr	x3, [sp, #8]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fsl,data-mapping"

l_.str.1:                               ; @.str.1
	.asciz	"fsl,data-width"

	.comm	_imx_ldb_bit_mappings,8,3       ; @imx_ldb_bit_mappings
l_.str.2:                               ; @.str.2
	.asciz	"invalid data mapping: %d-bit \"%s\"\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_of_get_bus_format
.subsections_via_symbols
