	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iguanair_get_features
_iguanair_get_features:                 ## @iguanair_get_features
	.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
	movq	16(%rdi), %rax
	movq	$0, 8(%rax)
	movq	_DIR_OUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_CMD_NOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	$16, %esi
	callq	_iguanair_send
	movq	_CMD_GET_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_iguanair_send
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
LBB0_11:
	xorl	%eax, %eax
	callq	_dev_info
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	(%rbx), %edx
	cmpl	$516, %edx                      ## imm = 0x204
	jg	LBB0_4
## %bb.3:
	movl	12(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_12
LBB0_4:
	movabsq	$279172874390, %rax             ## imm = 0x4100000096
	movq	%rax, 4(%rbx)
	movq	_CMD_GET_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_iguanair_send
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	movl	12(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_6:
	movl	4(%rbx), %edx
	movq	_BUF_SIZE@GOTPCREL(%rip), %r14
	cmpl	(%r14), %edx
	jle	LBB0_8
## %bb.7:
	movl	12(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	movl	(%r14), %eax
	movl	%eax, 4(%rbx)
LBB0_8:
	movq	_CMD_GET_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_iguanair_send
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %r14d
	movl	12(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_11
LBB0_9:
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_DIR_OUT,4,2                    ## @DIR_OUT
	.comm	_CMD_NOP,4,2                    ## @CMD_NOP
	.comm	_CMD_GET_VERSION,4,2            ## @CMD_GET_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get version\n"

L_.str.1:                               ## @.str.1
	.asciz	"firmware 0x%04x is too old\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_CMD_GET_BUFSIZE,4,2            ## @CMD_GET_BUFSIZE
L_.str.2:                               ## @.str.2
	.asciz	"failed to get buffer size\n"

	.comm	_BUF_SIZE,4,2                   ## @BUF_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"buffer size %u larger than expected\n"

	.comm	_CMD_GET_FEATURES,4,2           ## @CMD_GET_FEATURES
L_.str.4:                               ## @.str.4
	.asciz	"failed to get features\n"

	.no_dead_strip	_iguanair_get_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function iguanair_get_features
lCPI0_0:
	.long	150                             ; 0x96
	.long	65                              ; 0x41
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_iguanair_get_features:                 ; @iguanair_get_features
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x8, [x0, #16]
	str	xzr, [x8, #8]
Lloh0:
	adrp	x9, _DIR_OUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DIR_OUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _CMD_NOP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CMD_NOP@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
	mov	w1, #16
	bl	_iguanair_send
Lloh6:
	adrp	x8, _CMD_GET_VERSION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMD_GET_VERSION@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	str	w8, [x9]
	mov	x0, x19
	mov	w1, #16
	bl	_iguanair_send
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #12]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_dev_info
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	ldr	w2, [x19]
	cmp	w2, #516
	b.gt	LBB0_6
; %bb.5:
	ldr	w0, [x19, #12]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_3
LBB0_6:
Lloh16:
	adrp	x8, lCPI0_0@PAGE
Lloh17:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
Lloh18:
	adrp	x8, _CMD_GET_BUFSIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CMD_GET_BUFSIZE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	str	w8, [x9]
	mov	x0, x19
	mov	w1, #16
	bl	_iguanair_send
	cbz	w0, LBB0_8
; %bb.7:
	mov	x20, x0
	ldr	w0, [x19, #12]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_8:
	ldr	w8, [x19, #4]
Lloh23:
	adrp	x20, _BUF_SIZE@GOTPAGE
Lloh24:
	ldr	x20, [x20, _BUF_SIZE@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	b.le	LBB0_10
; %bb.9:
	ldr	w0, [x19, #12]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_info
	ldr	w8, [x20]
	str	w8, [x19, #4]
LBB0_10:
Lloh27:
	adrp	x8, _CMD_GET_FEATURES@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CMD_GET_FEATURES@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	str	w8, [x9]
	mov	x0, x19
	mov	w1, #16
	bl	_iguanair_send
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.11:
	ldr	w0, [x19, #12]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdrp	Lloh16, Lloh18
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_DIR_OUT,4,2                    ; @DIR_OUT
	.comm	_CMD_NOP,4,2                    ; @CMD_NOP
	.comm	_CMD_GET_VERSION,4,2            ; @CMD_GET_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get version\n"

l_.str.1:                               ; @.str.1
	.asciz	"firmware 0x%04x is too old\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_CMD_GET_BUFSIZE,4,2            ; @CMD_GET_BUFSIZE
l_.str.2:                               ; @.str.2
	.asciz	"failed to get buffer size\n"

	.comm	_BUF_SIZE,4,2                   ; @BUF_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"buffer size %u larger than expected\n"

	.comm	_CMD_GET_FEATURES,4,2           ; @CMD_GET_FEATURES
l_.str.4:                               ; @.str.4
	.asciz	"failed to get features\n"

	.no_dead_strip	_iguanair_get_features
.subsections_via_symbols
