	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mux_gpio_probe
_mux_gpio_probe:                        ## @mux_gpio_probe
	.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	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_gpiod_count
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_14
## %bb.1:
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$8, %edx
	callq	_devm_mux_chip_alloc
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.15:
	movq	%r15, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	%r15, %rdi
	callq	_mux_chip_priv
	movq	%rax, %r12
	movq	_mux_gpio_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_array
	movq	%rax, (%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_14
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_5:
	xorl	%eax, %eax
	cmpl	(%rdi), %ebx
	setne	%al
	movl	%eax, %edi
	callq	_WARN_ON
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.2(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_device_property_read_u32
	testl	%eax, %eax
	js	LBB0_11
## %bb.6:
	movl	-36(%rbp), %edx
	movq	_MUX_IDLE_AS_IS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	je	LBB0_11
## %bb.7:
	testl	%edx, %edx
	js	LBB0_9
## %bb.8:
	movq	8(%r15), %rax
	cmpl	(%rax), %edx
	jge	LBB0_9
## %bb.10:
	movl	%edx, 4(%rax)
LBB0_11:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_mux_chip_register
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movq	8(%r15), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_12:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	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	"mux"

	.comm	_mux_gpio_ops,4,2               ## @mux_gpio_ops
	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"failed to get gpios\n"

L_.str.2:                               ## @.str.2
	.asciz	"idle-state"

	.comm	_MUX_IDLE_AS_IS,4,2             ## @MUX_IDLE_AS_IS
L_.str.3:                               ## @.str.3
	.asciz	"invalid idle-state %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.4:                               ## @.str.4
	.asciz	"%u-way mux-controller registered\n"

	.no_dead_strip	_mux_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mux_gpio_probe
_mux_gpio_probe:                        ; @mux_gpio_probe
	.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	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_gpiod_count
	mov	x20, x0
	tbnz	w0, #31, LBB0_15
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #8
	bl	_devm_mux_chip_alloc
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	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
	b	_PTR_ERR
LBB0_3:
	mov	x0, x21
	bl	_mux_chip_priv
	mov	x22, x0
Lloh2:
	adrp	x8, _mux_gpio_ops@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mux_gpio_ops@GOTPAGEOFF]
	str	x8, [x21, #16]
Lloh4:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_array
	str	x0, [x22]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x22]
	cbz	x8, LBB0_6
; %bb.4:
	bl	_PTR_ERR
	mov	x20, x0
Lloh9:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_15
; %bb.5:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_15
LBB0_6:
	ldr	w8, [x0]
	cmp	w20, w8
	cset	w0, ne
	bl	_WARN_ON
	mov	w8, #1
	lsl	w8, w8, w20
	ldr	x9, [x21, #8]
	str	w8, [x9]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_device_property_read_u32
	tbnz	w0, #31, LBB0_11
; %bb.7:
	ldr	w8, [sp, #12]
Lloh16:
	adrp	x9, _MUX_IDLE_AS_IS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MUX_IDLE_AS_IS@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.8:
	tbnz	w8, #31, LBB0_14
; %bb.9:
	ldr	x9, [x21, #8]
	ldr	w10, [x9]
	cmp	w8, w10
	b.ge	LBB0_14
; %bb.10:
	str	w8, [x9, #4]
LBB0_11:
	mov	x0, x19
	mov	x1, x21
	bl	_devm_mux_chip_register
	tbnz	w0, #31, LBB0_13
; %bb.12:
	ldr	x8, [x21, #8]
	ldr	w2, [x8]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w20, #0
	b	LBB0_15
LBB0_13:
	mov	x20, x0
	b	LBB0_15
LBB0_14:
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_15:
	mov	x0, x20
	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 AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mux"

	.comm	_mux_gpio_ops,4,2               ; @mux_gpio_ops
	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"failed to get gpios\n"

l_.str.2:                               ; @.str.2
	.asciz	"idle-state"

	.comm	_MUX_IDLE_AS_IS,4,2             ; @MUX_IDLE_AS_IS
l_.str.3:                               ; @.str.3
	.asciz	"invalid idle-state %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.4:                               ; @.str.4
	.asciz	"%u-way mux-controller registered\n"

	.no_dead_strip	_mux_gpio_probe
.subsections_via_symbols
