	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	_PRINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	$0, -56(%rbp)
	movq	(%rsi), %rdi
	callq	_basename
	movq	_progname@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str(%rip), %r13
	movq	_SAVE@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	jmp	LBB0_1
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_getopt
	cmpl	$98, %eax
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$115, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_1
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_1
LBB0_7:
	movq	_optind@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	testq	%r12, %r12
	je	LBB0_11
## %bb.8:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movl	$16, %edx
	callq	_strtoumax
	movq	%rax, %rbx
	movq	-56(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	xorl	%eax, %eax
	callq	_usage
LBB0_10:
	movq	_PCI_ROM_RESERVED_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	%rax, %rbx
	movq	_base_addr@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
LBB0_11:
	testl	%r15d, %r15d
	jle	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	callq	_usage
LBB0_13:
	movq	__PATH_DEVPCI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_15
## %bb.14:
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	cmpl	$-1, %ebx
	jne	LBB0_17
LBB0_18:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_15:
	xorl	%eax, %eax
	callq	_banner
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_pci_enum_devs
	movl	%ebx, %edi
	callq	_close
	cmpl	$-1, %ebx
	je	LBB0_18
LBB0_17:
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_PRINT,4,2                      ## @PRINT
	.comm	_progname,4,2                   ## @progname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sb:h"

	.comm	_SAVE,4,2                       ## @SAVE
	.comm	_optarg,8,3                     ## @optarg
	.comm	_optind,8,3                     ## @optind
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Invalid base address.\r\n"

	.comm	_base_addr,8,3                  ## @base_addr
	.comm	_PCI_ROM_RESERVED_MASK,8,3      ## @PCI_ROM_RESERVED_MASK
	.comm	__PATH_DEVPCI,4,2               ## @_PATH_DEVPCI
	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.2:                               ## @.str.2
	.asciz	"open"

	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _PRINT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRINT@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	str	xzr, [sp, #8]
	ldr	x0, [x1]
	bl	_basename
	mov	x22, #0
Lloh3:
	adrp	x8, _progname@GOTPAGE
Lloh4:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh5:
	str	w0, [x8]
Lloh6:
	adrp	x23, l_.str@PAGE
Lloh7:
	add	x23, x23, l_.str@PAGEOFF
Lloh8:
	adrp	x24, _optarg@GOTPAGE
Lloh9:
	ldr	x24, [x24, _optarg@GOTPAGEOFF]
Lloh10:
	adrp	x25, _SAVE@GOTPAGE
Lloh11:
	ldr	x25, [x25, _SAVE@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w19, [x25]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_getopt
	cmp	w0, #98
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #115
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x22, [x24]
	b	LBB0_2
LBB0_7:
Lloh12:
	adrp	x8, _optind@GOTPAGE
Lloh13:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	sub	w21, w20, w8
	cbz	x22, LBB0_11
; %bb.8:
	add	x1, sp, #8
	mov	x0, x22
	mov	w2, #16
	bl	_strtoumax
	mov	x20, x0
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_10
; %bb.9:
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	bl	_usage
LBB0_10:
Lloh20:
	adrp	x8, _PCI_ROM_RESERVED_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PCI_ROM_RESERVED_MASK@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	bic	x8, x20, x8
Lloh23:
	adrp	x9, _base_addr@GOTPAGE
Lloh24:
	ldr	x9, [x9, _base_addr@GOTPAGEOFF]
Lloh25:
	str	x8, [x9]
LBB0_11:
	cmp	w21, #1
	b.lt	LBB0_13
; %bb.12:
	bl	_usage
LBB0_13:
Lloh26:
	adrp	x8, __PATH_DEVPCI@GOTPAGE
Lloh27:
	ldr	x8, [x8, __PATH_DEVPCI@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_open
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_16
; %bb.14:
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
LBB0_15:
Lloh34:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh36:
	adrp	x9, _EXIT_FAILURE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _EXIT_FAILURE@GOTPAGEOFF]
	cmn	w20, #1
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	bl	_exit
LBB0_16:
	bl	_banner
	mov	x0, x20
	mov	x1, x19
	bl	_pci_enum_devs
	mov	x0, x20
	bl	_close
	b	LBB0_15
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_PRINT,4,2                      ; @PRINT
	.comm	_progname,4,2                   ; @progname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sb:h"

	.comm	_SAVE,4,2                       ; @SAVE
	.comm	_optarg,8,3                     ; @optarg
	.comm	_optind,8,3                     ; @optind
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Invalid base address.\r\n"

	.comm	_base_addr,8,3                  ; @base_addr
	.comm	_PCI_ROM_RESERVED_MASK,8,3      ; @PCI_ROM_RESERVED_MASK
	.comm	__PATH_DEVPCI,4,2               ; @_PATH_DEVPCI
	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.2:                               ; @.str.2
	.asciz	"open"

	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
.subsections_via_symbols
