	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxl111sf_config_gpio_pins
_mxl111sf_config_gpio_pins:             ## @mxl111sf_config_gpio_pins
	.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, %r15
	movq	%rdi, %r14
	movl	(%rsi), %esi
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rdi
	callq	_mxl_debug_adv
	movl	(%r15), %eax
	cmpl	$10, %eax
	ja	LBB0_12
## %bb.1:
	movl	$15, %ecx
	btl	%eax, %ecx
	jb	LBB0_5
## %bb.2:
	movl	$240, %ecx
	btl	%eax, %ecx
	jae	LBB0_10
## %bb.3:
	movq	_MXL_GPIO_MUX_REG_1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_mxl111sf_read_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:
	movb	(%r15), %cl
	jmp	LBB0_7
LBB0_5:
	movq	_MXL_GPIO_MUX_REG_0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_mxl111sf_read_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testl	%eax, %eax
	jne	LBB0_15
## %bb.6:
	movb	(%r15), %cl
	addb	$4, %cl
	jmp	LBB0_7
LBB0_10:
	movq	_MXL_GPIO_MUX_REG_2@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_mxl111sf_read_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movb	(%r15), %cl
	addb	$-3, %cl
LBB0_7:
	movl	-36(%rbp), %eax
	movl	4(%r15), %edx
	shll	%cl, %edx
	btrl	%ecx, %eax
	orl	%eax, %edx
	movl	%edx, -36(%rbp)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_mxl111sf_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:
	movq	_MXL_GPIO_DIR_OUTPUT@GOTPCREL(%rip), %rax
	movslq	4(%r15), %rcx
	leaq	8(%r15), %rdx
	movl	(%r15), %esi
	cmpq	%rcx, (%rax)
	jne	LBB0_13
## %bb.9:
	movl	(%rdx), %edx
	movq	%r14, %rdi
	callq	_mxl111sf_set_gpo_state
	jmp	LBB0_14
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_13:
	movq	%r14, %rdi
	callq	_mxl111sf_get_gpi_state
LBB0_14:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
LBB0_15:
	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	"(%d, %d)"

	.comm	_MXL_GPIO_MUX_REG_0,4,2         ## @MXL_GPIO_MUX_REG_0
	.comm	_MXL_GPIO_MUX_REG_1,4,2         ## @MXL_GPIO_MUX_REG_1
	.comm	_MXL_GPIO_MUX_REG_2,4,2         ## @MXL_GPIO_MUX_REG_2
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MXL_GPIO_DIR_OUTPUT,8,3        ## @MXL_GPIO_DIR_OUTPUT
	.no_dead_strip	_mxl111sf_config_gpio_pins
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxl111sf_config_gpio_pins
_mxl111sf_config_gpio_pins:             ; @mxl111sf_config_gpio_pins
	.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
	ldr	w1, [x1]
	ldr	w2, [x20, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mxl_debug_adv
	ldr	w8, [x20]
	cmp	w8, #10
	b.hi	LBB0_13
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w8, #0xf
	b.ne	LBB0_5
; %bb.2:
	tst	w8, #0xf0
	b.eq	LBB0_7
; %bb.3:
Lloh2:
	adrp	x22, _MXL_GPIO_MUX_REG_1@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MXL_GPIO_MUX_REG_1@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mxl111sf_read_reg
	mov	x21, x0
	bl	_mxl_fail
	cbnz	w0, LBB0_16
; %bb.4:
	mov	w8, #1
	ldp	w9, w10, [x20]
	lsl	w8, w8, w9
	ldr	w11, [sp, #12]
	bic	w8, w11, w8
	lsl	w9, w10, w9
	orr	w2, w9, w8
	b	LBB0_10
LBB0_5:
Lloh4:
	adrp	x22, _MXL_GPIO_MUX_REG_0@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MXL_GPIO_MUX_REG_0@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mxl111sf_read_reg
	mov	x21, x0
	bl	_mxl_fail
	cbnz	w0, LBB0_16
; %bb.6:
	ldp	w8, w9, [x20]
	add	w8, w8, #4
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x22, _MXL_GPIO_MUX_REG_2@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MXL_GPIO_MUX_REG_2@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mxl111sf_read_reg
	mov	x21, x0
	bl	_mxl_fail
	cbnz	w0, LBB0_16
; %bb.8:
	ldp	w8, w9, [x20]
	sub	w8, w8, #3
LBB0_9:
	mov	w10, #1
	lsl	w10, w10, w8
	ldr	w11, [sp, #12]
	bic	w10, w11, w10
	lsl	w8, w9, w8
	orr	w2, w8, w10
LBB0_10:
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_mxl111sf_write_reg
	mov	x21, x0
	bl	_mxl_fail
	cbnz	w0, LBB0_16
; %bb.11:
Lloh8:
	adrp	x8, _MXL_GPIO_DIR_OUTPUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MXL_GPIO_DIR_OUTPUT@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldp	w1, w9, [x20]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x2, x20, #8
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	ldr	w2, [x2]
	mov	x0, x19
	bl	_mxl111sf_set_gpo_state
	b	LBB0_15
LBB0_13:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_14:
	mov	x0, x19
	bl	_mxl111sf_get_gpi_state
LBB0_15:
	mov	x21, x0
	bl	_mxl_fail
LBB0_16:
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d, %d)"

	.comm	_MXL_GPIO_MUX_REG_0,4,2         ; @MXL_GPIO_MUX_REG_0
	.comm	_MXL_GPIO_MUX_REG_1,4,2         ; @MXL_GPIO_MUX_REG_1
	.comm	_MXL_GPIO_MUX_REG_2,4,2         ; @MXL_GPIO_MUX_REG_2
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MXL_GPIO_DIR_OUTPUT,8,3        ; @MXL_GPIO_DIR_OUTPUT
	.no_dead_strip	_mxl111sf_config_gpio_pins
.subsections_via_symbols
