	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdp_nci_i2c_read_device_properties
_fdp_nci_i2c_read_device_properties:    ## @fdp_nci_i2c_read_device_properties
	.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
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_FDP_DP_CLOCK_TYPE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_device_property_read_u8
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	$0, (%r15)
LBB0_2:
	movq	_FDP_DP_CLOCK_FREQ_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_device_property_read_u32
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$26000, (%r14)                  ## imm = 0x6590
LBB0_4:
	movq	_FDP_DP_FW_VSC_CFG_NAME@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_device_property_present
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movl	(%r13), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_device_property_read_u8
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	jle	LBB0_10
## %bb.7:
	incq	%rsi
	movq	%rsi, -48(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_devm_kmalloc_array
	movq	%rax, (%r12)
	movl	(%r13), %esi
	movq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_device_property_read_u8_array
	movq	(%r12), %rsi
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	callq	_devm_kfree
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	$0, (%r12)
	leaq	L_.str.5(%rip), %r8
LBB0_11:
	movq	(%r15), %rdx
	movl	(%r14), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	testq	%rsi, %rsi
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %r8
	cmoveq	%rax, %r8
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_FDP_DP_CLOCK_TYPE_NAME,4,2     ## @FDP_DP_CLOCK_TYPE_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using default clock type"

	.comm	_FDP_DP_CLOCK_FREQ_NAME,4,2     ## @FDP_DP_CLOCK_FREQ_NAME
L_.str.1:                               ## @.str.1
	.asciz	"Using default clock frequency\n"

	.comm	_FDP_DP_FW_VSC_CFG_NAME,4,2     ## @FDP_DP_FW_VSC_CFG_NAME
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.2:                               ## @.str.2
	.asciz	"FW vendor specific commands not present\n"

L_.str.3:                               ## @.str.3
	.asciz	"Clock type: %d, clock frequency: %d, VSC: %s"

L_.str.4:                               ## @.str.4
	.asciz	"yes"

L_.str.5:                               ## @.str.5
	.asciz	"no"

	.no_dead_strip	_fdp_nci_i2c_read_device_properties
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdp_nci_i2c_read_device_properties
_fdp_nci_i2c_read_device_properties:    ; @fdp_nci_i2c_read_device_properties
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _FDP_DP_CLOCK_TYPE_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FDP_DP_CLOCK_TYPE_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_device_property_read_u8
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	str	xzr, [x21]
LBB0_2:
Lloh5:
	adrp	x8, _FDP_DP_CLOCK_FREQ_NAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FDP_DP_CLOCK_FREQ_NAME@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_device_property_read_u32
	cbz	w0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w8, #26000
	str	w8, [x20]
LBB0_4:
Lloh10:
	adrp	x23, _FDP_DP_FW_VSC_CFG_NAME@GOTPAGE
Lloh11:
	ldr	x23, [x23, _FDP_DP_FW_VSC_CFG_NAME@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_device_property_present
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w1, [x23]
	add	x2, sp, #24
	mov	x0, x19
	bl	_device_property_read_u8
	ldr	x8, [sp, #24]
	cmp	w0, #0
	ccmp	x8, #1, #8, eq
	b.lt	LBB0_8
; %bb.6:
	add	x1, x8, #1
	str	x1, [sp, #24]
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #8
	bl	_devm_kmalloc_array
	mov	x2, x0
	str	x0, [x22]
	ldr	w1, [x23]
	ldr	x3, [sp, #24]
	mov	x0, x19
	bl	_device_property_read_u8_array
	ldr	x1, [x22]
	cbz	w0, LBB0_10
; %bb.7:
	mov	x0, x19
	bl	_devm_kfree
LBB0_8:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	str	xzr, [x22]
Lloh17:
	adrp	x8, l_.str.5@PAGE
Lloh18:
	add	x8, x8, l_.str.5@PAGEOFF
LBB0_9:
	ldr	x9, [x21]
	ldr	w10, [x20]
	stp	x10, x8, [sp, #8]
	str	x9, [sp]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
Lloh21:
	adrp	x8, l_.str.4@PAGE
Lloh22:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh23:
	adrp	x9, l_.str.5@PAGE
Lloh24:
	add	x9, x9, l_.str.5@PAGEOFF
	cmp	x1, #0
	csel	x8, x9, x8, eq
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_FDP_DP_CLOCK_TYPE_NAME,4,2     ; @FDP_DP_CLOCK_TYPE_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using default clock type"

	.comm	_FDP_DP_CLOCK_FREQ_NAME,4,2     ; @FDP_DP_CLOCK_FREQ_NAME
l_.str.1:                               ; @.str.1
	.asciz	"Using default clock frequency\n"

	.comm	_FDP_DP_FW_VSC_CFG_NAME,4,2     ; @FDP_DP_FW_VSC_CFG_NAME
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.2:                               ; @.str.2
	.asciz	"FW vendor specific commands not present\n"

l_.str.3:                               ; @.str.3
	.asciz	"Clock type: %d, clock frequency: %d, VSC: %s"

l_.str.4:                               ; @.str.4
	.asciz	"yes"

l_.str.5:                               ; @.str.5
	.asciz	"no"

	.no_dead_strip	_fdp_nci_i2c_read_device_properties
.subsections_via_symbols
