	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_debugfs_hw_iowrite32_write
_carl9170_debugfs_hw_iowrite32_write:   ## @carl9170_debugfs_hw_iowrite32_write
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	cmpq	$23, %rdx
	jb	LBB0_4
## %bb.3:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_4:
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rax
	leaq	-24(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_5
## %bb.7:
	movl	-24(%rbp), %esi
	leal	-2621440(%rsi), %eax
	cmpl	$-1572864, %eax                 ## imm = 0xFFE80000
	ja	LBB0_9
## %bb.8:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_9:
	testb	$3, %sil
	je	LBB0_10
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	testl	%eax, %eax
	cmovnel	%eax, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movl	-20(%rbp), %edx
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_carl9170_write_reg
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_E2BIG,4,2                      ## @E2BIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%X 0x%X"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.no_dead_strip	_carl9170_debugfs_hw_iowrite32_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_debugfs_hw_iowrite32_write
_carl9170_debugfs_hw_iowrite32_write:   ; @carl9170_debugfs_hw_iowrite32_write
	.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
	cbz	x2, LBB0_3
; %bb.1:
	mov	x19, x2
	cmp	x2, #23
	b.lo	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _E2BIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_3:
	mov	w0, #0
	b	LBB0_11
LBB0_4:
	mov	x20, x0
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x1
	mov	x1, x8
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_8
; %bb.5:
	ldr	w1, [sp, #12]
	sub	w8, w1, #640, lsl #12           ; =2621440
	cmn	w8, #384, lsl #12               ; =1572864
	b.hi	LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	tst	w1, #0x3
	b.eq	LBB0_12
LBB0_8:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	cmp	w0, #0
	csel	w0, w19, w0, eq
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_12:
	ldr	w2, [sp, #8]
	mov	x0, x20
	bl	_carl9170_write_reg
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_E2BIG,4,2                      ; @E2BIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%X 0x%X"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.no_dead_strip	_carl9170_debugfs_hw_iowrite32_write
.subsections_via_symbols
