	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shm32write__write_file
_shm32write__write_file:                ## @shm32write__write_file
	.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
	movq	%rsi, %rax
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-28(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	leaq	-20(%rbp), %r8
	leaq	-32(%rbp), %r9
	movq	%rax, %rdi
	callq	_sscanf
	cmpl	$4, %eax
	jne	LBB0_1
## %bb.3:
	movl	-28(%rbp), %esi
	movq	_B43_MAX_SHM_ROUTING@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	ja	LBB0_4
## %bb.5:
	movl	-24(%rbp), %edx
	movq	_B43_MAX_SHM_ADDR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	ja	LBB0_4
## %bb.6:
	movq	_B43_SHM_SHARED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_8
## %bb.7:
	movl	%edx, %eax
	andl	$1, %eax
	je	LBB0_8
LBB0_4:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	cmpl	$0, -20(%rbp)
	je	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	callq	_b43_shm_read32
	movl	%eax, %ecx
	movl	-28(%rbp), %esi
	movl	-24(%rbp), %edx
	andl	-20(%rbp), %ecx
	jmp	LBB0_11
LBB0_9:
	xorl	%ecx, %ecx
LBB0_11:
	orl	-32(%rbp), %ecx
	movq	%r14, %rdi
	callq	_b43_shm_write32
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%X 0x%X 0x%X 0x%X"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_B43_MAX_SHM_ROUTING,4,2        ## @B43_MAX_SHM_ROUTING
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_B43_MAX_SHM_ADDR,4,2           ## @B43_MAX_SHM_ADDR
	.comm	_B43_SHM_SHARED,4,2             ## @B43_SHM_SHARED
	.comm	_E2BIG,4,2                      ## @E2BIG
	.no_dead_strip	_shm32write__write_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shm32write__write_file
_shm32write__write_file:                ; @shm32write__write_file
	.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	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x5, sp
	mov	x0, x8
	bl	_sscanf
	cmp	w0, #4
	b.ne	LBB0_7
; %bb.1:
	ldr	w1, [sp, #12]
Lloh2:
	adrp	x8, _B43_MAX_SHM_ROUTING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _B43_MAX_SHM_ROUTING@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w1, w8
	b.hi	LBB0_8
; %bb.2:
	ldr	w2, [sp, #8]
Lloh5:
	adrp	x8, _B43_MAX_SHM_ADDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _B43_MAX_SHM_ADDR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w2, w8
	b.hi	LBB0_8
; %bb.3:
Lloh8:
	adrp	x8, _B43_SHM_SHARED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _B43_SHM_SHARED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w9, w2, #0x1
	cmp	w1, w8
	ccmp	w9, #0, #4, eq
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_b43_shm_read32
	ldp	w8, w2, [sp, #4]
	ldr	w1, [sp, #12]
	and	w8, w8, w0
LBB0_6:
	ldr	w9, [sp]
	orr	w3, w8, w9
	mov	x0, x19
	bl	_b43_shm_write32
	mov	w0, #0
	b	LBB0_10
LBB0_7:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%X 0x%X 0x%X 0x%X"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_B43_MAX_SHM_ROUTING,4,2        ; @B43_MAX_SHM_ROUTING
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_B43_MAX_SHM_ADDR,4,2           ; @B43_MAX_SHM_ADDR
	.comm	_B43_SHM_SHARED,4,2             ; @B43_SHM_SHARED
	.comm	_E2BIG,4,2                      ; @E2BIG
	.no_dead_strip	_shm32write__write_file
.subsections_via_symbols
