	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mux_control_get                ## -- Begin function mux_control_get
	.p2align	4, 0x90
_mux_control_get:                       ## @mux_control_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r12
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_of_property_match_string
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r15d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	xorl	%r15d, %r15d
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	leaq	-64(%rbp), %r8
	movq	%r12, %rdi
	movl	%r15d, %ecx
	callq	_of_parse_phandle_with_args
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r13d
	testq	%rbx, %rbx
	leaq	L_.str.5(%rip), %rcx
	cmovneq	%rbx, %rcx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r13d, %edi
	jmp	LBB0_17
LBB0_6:
	movl	-48(%rbp), %edi
	callq	_of_find_mux_chip_by_node
	movq	%rax, %r15
	movl	-48(%rbp), %edi
	callq	_of_node_put
	testq	%r15, %r15
	je	LBB0_9
## %bb.7:
	movl	-64(%rbp), %eax
	cmpl	$1, %eax
	jle	LBB0_10
LBB0_8:
	movl	-48(%rbp), %ecx
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_16
LBB0_9:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_17
LBB0_10:
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	-56(%rbp), %rax
	movl	(%rax), %ecx
	movl	(%r15), %eax
	jmp	LBB0_13
LBB0_12:
	movl	(%r15), %eax
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	jge	LBB0_8
LBB0_13:
	cmpl	%eax, %ecx
	jae	LBB0_15
## %bb.14:
	movl	%ecx, %eax
	shlq	$2, %rax
	addq	8(%r15), %rax
	jmp	LBB0_18
LBB0_15:
	movl	-48(%rbp), %r8d
	leaq	L_.str.7(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_16:
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_put_device
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
LBB0_17:
	callq	_ERR_PTR
LBB0_18:
	addq	$24, %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	"mux-control-names"

L_.str.1:                               ## @.str.1
	.asciz	"mux controller '%s' not found\n"

L_.str.2:                               ## @.str.2
	.asciz	"mux-controls"

L_.str.3:                               ## @.str.3
	.asciz	"#mux-control-cells"

L_.str.4:                               ## @.str.4
	.asciz	"%pOF: failed to get mux-control %s(%i)\n"

L_.str.5:                               ## @.str.5
	.space	1

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.6:                               ## @.str.6
	.asciz	"%pOF: wrong #mux-control-cells for %pOF\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.7:                               ## @.str.7
	.asciz	"%pOF: bad mux controller %u specified in %pOF\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mux_control_get                ; -- Begin function mux_control_get
	.p2align	2
_mux_control_get:                       ; @mux_control_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0]
	cbz	x1, LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_of_property_match_string
	mov	x22, x0
	tbz	w0, #31, LBB0_4
; %bb.2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ERR_PTR
LBB0_3:
	mov	w22, #0
LBB0_4:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x4, sp, #24
	mov	x0, x19
	mov	x3, x22
	bl	_of_parse_phandle_with_args
	cbz	w0, LBB0_6
; %bb.5:
	mov	x23, x0
Lloh8:
	adrp	x8, l_.str.5@PAGE
Lloh9:
	add	x8, x8, l_.str.5@PAGEOFF
	cmp	x21, #0
	csel	x8, x8, x21, eq
	stp	x8, x22, [sp]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_err
	mov	x0, x23
	b	LBB0_18
LBB0_6:
	ldr	w0, [sp, #40]
	bl	_of_find_mux_chip_by_node
	mov	x21, x0
	ldr	w0, [sp, #40]
	bl	_of_node_put
	cbz	x21, LBB0_9
; %bb.7:
	ldr	w8, [sp, #24]
	cmp	w8, #1
	b.le	LBB0_10
LBB0_8:
	ldr	w8, [sp, #40]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_16
LBB0_9:
Lloh14:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_17
LBB0_10:
	cbz	w8, LBB0_13
; %bb.11:
	ldr	x8, [sp, #32]
	ldr	w8, [x8]
	ldr	w9, [x21]
	cmp	w8, w9
	b.hs	LBB0_15
LBB0_12:
	ldr	x9, [x21, #8]
	add	x0, x9, w8, uxtw #2
	b	LBB0_19
LBB0_13:
	ldr	w9, [x21]
	cmp	w9, #2
	b.ge	LBB0_8
; %bb.14:
	mov	w8, #0
	cmp	w8, w9
	b.lo	LBB0_12
LBB0_15:
	ldr	w9, [sp, #40]
	stp	x8, x9, [sp]
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_16:
	mov	x0, x20
	mov	x2, x19
	bl	_dev_err
	add	x0, x21, #16
	bl	_put_device
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	bl	_ERR_PTR
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mux-control-names"

l_.str.1:                               ; @.str.1
	.asciz	"mux controller '%s' not found\n"

l_.str.2:                               ; @.str.2
	.asciz	"mux-controls"

l_.str.3:                               ; @.str.3
	.asciz	"#mux-control-cells"

l_.str.4:                               ; @.str.4
	.asciz	"%pOF: failed to get mux-control %s(%i)\n"

l_.str.5:                               ; @.str.5
	.space	1

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.6:                               ; @.str.6
	.asciz	"%pOF: wrong #mux-control-cells for %pOF\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.7:                               ; @.str.7
	.asciz	"%pOF: bad mux controller %u specified in %pOF\n"

.subsections_via_symbols
