	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_nfc_clk_init
_meson_nfc_clk_init:                    ## @meson_nfc_clk_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_devm_clk_get
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movl	24(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	(%rbx), %rdi
	jmp	LBB0_2
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	callq	_devm_clk_get
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movl	24(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movq	8(%rbx), %rdi
	jmp	LBB0_2
LBB0_5:
	leaq	L_.str.4(%rip), %rsi
	callq	_devm_clk_get
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movl	24(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_err
	movq	16(%rbx), %rdi
	jmp	LBB0_2
LBB0_7:
	leaq	L_.str.6(%rip), %rsi
	callq	_devm_clk_get
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	24(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_dev_err
	movq	32(%rbx), %rdi
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_9:
	movl	40(%rbx), %edi
	movq	_CLK_SELECT_NAND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movq	(%rbx), %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r14d
	movl	24(%rbx), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_22
LBB0_11:
	movq	8(%rbx), %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movl	%eax, %r14d
	movl	24(%rbx), %edi
	leaq	L_.str.9(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_13
LBB0_14:
	movq	16(%rbx), %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movl	%eax, %r14d
	movl	24(%rbx), %edi
	leaq	L_.str.10(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_16
LBB0_17:
	movq	32(%rbx), %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:
	movl	%eax, %r14d
	movl	24(%rbx), %edi
	leaq	L_.str.11(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_19
LBB0_20:
	movq	8(%rbx), %rdi
	movl	$24000000, %esi                 ## imm = 0x16E3600
	callq	_clk_set_rate
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_21
LBB0_19:
	movq	16(%rbx), %rdi
	callq	_clk_disable_unprepare
LBB0_16:
	movq	8(%rbx), %rdi
	callq	_clk_disable_unprepare
LBB0_13:
	movq	(%rbx), %rdi
	callq	_clk_disable_unprepare
LBB0_22:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_21:
	xorl	%r14d, %r14d
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"core"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get core clock\n"

L_.str.2:                               ## @.str.2
	.asciz	"device"

L_.str.3:                               ## @.str.3
	.asciz	"failed to get device clock\n"

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

L_.str.5:                               ## @.str.5
	.asciz	"failed to get TX clk\n"

L_.str.6:                               ## @.str.6
	.asciz	"rx"

L_.str.7:                               ## @.str.7
	.asciz	"failed to get RX clk\n"

	.comm	_CLK_SELECT_NAND,4,2            ## @CLK_SELECT_NAND
L_.str.8:                               ## @.str.8
	.asciz	"failed to enable core clock\n"

L_.str.9:                               ## @.str.9
	.asciz	"failed to enable device clock\n"

L_.str.10:                              ## @.str.10
	.asciz	"failed to enable TX clock\n"

L_.str.11:                              ## @.str.11
	.asciz	"failed to enable RX clock\n"

	.no_dead_strip	_meson_nfc_clk_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_nfc_clk_init
_meson_nfc_clk_init:                    ; @meson_nfc_clk_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devm_clk_get
	str	x0, [x19]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19]
	b	LBB0_8
LBB0_2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_devm_clk_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x19, #24]
	cbz	x8, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #8]
	b	LBB0_8
LBB0_4:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_devm_clk_get
	str	x0, [x19, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x19, #24]
	cbz	x8, LBB0_6
; %bb.5:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #16]
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_devm_clk_get
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w0, [x19, #24]
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #32]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_9:
	ldr	w0, [x19, #40]
Lloh16:
	adrp	x8, _CLK_SELECT_NAND@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CLK_SELECT_NAND@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x2
	bl	_regmap_update_bits
	ldr	x0, [x19]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_11
; %bb.10:
	mov	x20, x0
	ldr	w0, [x19, #24]
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dev_err
	b	LBB0_21
LBB0_11:
	ldr	x0, [x19, #8]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_13
; %bb.12:
	mov	x20, x0
	ldr	w0, [x19, #24]
Lloh21:
	adrp	x1, l_.str.9@PAGE
Lloh22:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_dev_err
	b	LBB0_20
LBB0_13:
	ldr	x0, [x19, #16]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_15
; %bb.14:
	mov	x20, x0
	ldr	w0, [x19, #24]
Lloh23:
	adrp	x1, l_.str.10@PAGE
Lloh24:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_dev_err
	b	LBB0_19
LBB0_15:
	ldr	x0, [x19, #32]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_17
; %bb.16:
	mov	x20, x0
	ldr	w0, [x19, #24]
Lloh25:
	adrp	x1, l_.str.11@PAGE
Lloh26:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_dev_err
	b	LBB0_18
LBB0_17:
	ldr	x0, [x19, #8]
	mov	w1, #13824
	movk	w1, #366, lsl #16
	bl	_clk_set_rate
	mov	x20, x0
	cbz	w0, LBB0_21
LBB0_18:
	ldr	x0, [x19, #16]
	bl	_clk_disable_unprepare
LBB0_19:
	ldr	x0, [x19, #8]
	bl	_clk_disable_unprepare
LBB0_20:
	ldr	x0, [x19]
	bl	_clk_disable_unprepare
LBB0_21:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"core"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get core clock\n"

l_.str.2:                               ; @.str.2
	.asciz	"device"

l_.str.3:                               ; @.str.3
	.asciz	"failed to get device clock\n"

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

l_.str.5:                               ; @.str.5
	.asciz	"failed to get TX clk\n"

l_.str.6:                               ; @.str.6
	.asciz	"rx"

l_.str.7:                               ; @.str.7
	.asciz	"failed to get RX clk\n"

	.comm	_CLK_SELECT_NAND,4,2            ; @CLK_SELECT_NAND
l_.str.8:                               ; @.str.8
	.asciz	"failed to enable core clock\n"

l_.str.9:                               ; @.str.9
	.asciz	"failed to enable device clock\n"

l_.str.10:                              ; @.str.10
	.asciz	"failed to enable TX clock\n"

l_.str.11:                              ; @.str.11
	.asciz	"failed to enable RX clock\n"

	.no_dead_strip	_meson_nfc_clk_init
.subsections_via_symbols
