	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib9000_cfg_gpio
_dib9000_cfg_gpio:                      ## @dib9000_cfg_gpio
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	$773, %esi                      ## imm = 0x305
	callq	_dib9000_read_word
	andl	$1, %ebx
	movl	%r15d, %ecx
	shll	%cl, %ebx
	btrl	%r15d, %eax
	orl	%eax, %ebx
	movl	%ebx, (%r14)
	movq	%r14, %rdi
	movl	$773, %esi                      ## imm = 0x305
	movl	%ebx, %edx
	callq	_dib9000_write_word
	movq	%r14, %rdi
	movl	$774, %esi                      ## imm = 0x306
	callq	_dib9000_read_word
	andl	$1, %r12d
	movl	%r15d, %ecx
	shll	%cl, %r12d
	btrl	%r15d, %eax
	orl	%eax, %r12d
	movl	%r12d, 4(%r14)
	movq	%r14, %rdi
	movl	$774, %esi                      ## imm = 0x306
	movl	%r12d, %edx
	callq	_dib9000_write_word
	movl	(%r14), %esi
	movl	4(%r14), %edx
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gpio dir: %04x: gpio val: %04x\n"

	.no_dead_strip	_dib9000_cfg_gpio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib9000_cfg_gpio
_dib9000_cfg_gpio:                      ; @dib9000_cfg_gpio
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w1, #773
	bl	_dib9000_read_word
	mov	w8, #1
	lsl	w23, w8, w21
	bic	w8, w0, w23
	and	w9, w20, #0x1
	lsl	w9, w9, w21
	orr	w2, w8, w9
	str	w2, [x22]
	mov	x0, x22
	mov	w1, #773
	bl	_dib9000_write_word
	mov	x0, x22
	mov	w1, #774
	bl	_dib9000_read_word
	bic	w8, w0, w23
	and	w9, w19, #0x1
	lsl	w9, w9, w21
	orr	w2, w8, w9
	str	w2, [x22, #4]
	mov	x0, x22
	mov	w1, #774
	bl	_dib9000_write_word
	ldp	w1, w2, [x22]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpio dir: %04x: gpio val: %04x\n"

	.no_dead_strip	_dib9000_cfg_gpio
.subsections_via_symbols
